Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How To Deny eth0 Access to Specific Binary[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xevix
Apprentice
Apprentice


Joined: 02 Oct 2004
Posts: 284
Location: Cali, USA

PostPosted: Wed May 09, 2007 10:05 pm    Post subject: How To Deny eth0 Access to Specific Binary[SOLVED] Reply with quote

Is there a way to deny internet access to a specific binary, such as by iptables? My friend and I have a single copy of doom3, he wants to play online I want to play offline, but as soon as I enter the game it checks the internet to see if someone else is using the key, and I hate to shut off my eth0 just to play the game. Any ideas?

Solved:

Found the master server IP and blocked it.
_________________
AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux 2x2.2 ghz
nVidia GeForce 8800 GTS 320Mb
250 gb SATA hd
2gb pc-3200 DDR


Last edited by xevix on Fri May 11, 2007 7:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jointy
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2005
Posts: 142
Location: Saarbrücken

PostPosted: Wed May 09, 2007 10:11 pm    Post subject: Reply with quote

Hy...

you can filter the doom3 query packets that will send by the game3 with iptables...

On which ports (destination port is interesting) does the game send the query ???
_________________
[Host: Arko]
ASUS G1S
http://gentoo-wiki.com/HARDWARE_Asus_G1S
[Host: Pandora]
PIII 1Ghz (133) / 512MB
1x40GB & 60GB (mdRAID1)
Hardened Stage 1 Server
[Host: Plato]
verkauft (OpenSuse 11.0)
Back to top
View user's profile Send private message
xevix
Apprentice
Apprentice


Joined: 02 Oct 2004
Posts: 284
Location: Cali, USA

PostPosted: Wed May 09, 2007 10:14 pm    Post subject: Reply with quote

I don't know, how to find out?
_________________
AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux 2x2.2 ghz
nVidia GeForce 8800 GTS 320Mb
250 gb SATA hd
2gb pc-3200 DDR
Back to top
View user's profile Send private message
Jointy
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2005
Posts: 142
Location: Saarbrücken

PostPosted: Thu May 10, 2007 9:48 pm    Post subject: Reply with quote

hy,

I would emerge firestarter which is a really simple and usefull firewall script with a gui.

If you have emerged firestarter you need to startup firestarter and your doom3 to find out on which IP and Port is your game connect to.

Now you have to create a filter rule for outgoing traffic and put in the doom3 IP and/or Port.

this should work,

regards
Jointy

PS: firestarter depends on iptables and netfilter support in the kernel, so you need to compile this as module or built it in with the kernel
_________________
[Host: Arko]
ASUS G1S
http://gentoo-wiki.com/HARDWARE_Asus_G1S
[Host: Pandora]
PIII 1Ghz (133) / 512MB
1x40GB & 60GB (mdRAID1)
Hardened Stage 1 Server
[Host: Plato]
verkauft (OpenSuse 11.0)
Back to top
View user's profile Send private message
xevix
Apprentice
Apprentice


Joined: 02 Oct 2004
Posts: 284
Location: Cali, USA

PostPosted: Fri May 11, 2007 2:42 am    Post subject: Reply with quote

Hey, problem with that, haha. Doom3 takes up full screen and refuses to let me switch desktops. Is there some log I can access to see the port?
_________________
AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux 2x2.2 ghz
nVidia GeForce 8800 GTS 320Mb
250 gb SATA hd
2gb pc-3200 DDR
Back to top
View user's profile Send private message
asiobob
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1375
Location: Bamboo Creek

PostPosted: Fri May 11, 2007 3:27 am    Post subject: Reply with quote

2 ways,
1. Purchase 2 keys.
2. Findout what server doom3 is trying to connect to (do a netstat or something)
2.1 then edit your host file such that the name it uses to connect maps to your 127.0.0.1
Back to top
View user's profile Send private message
xevix
Apprentice
Apprentice


Joined: 02 Oct 2004
Posts: 284
Location: Cali, USA

PostPosted: Fri May 11, 2007 4:04 am    Post subject: Reply with quote

The test appears to go very fast if successful, so I can't really catch it. If I just run netstat, then quickly run doom3 and leave, will that work to check?
_________________
AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux 2x2.2 ghz
nVidia GeForce 8800 GTS 320Mb
250 gb SATA hd
2gb pc-3200 DDR
Back to top
View user's profile Send private message
Jointy
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2005
Posts: 142
Location: Saarbrücken

PostPosted: Fri May 11, 2007 10:04 am    Post subject: Reply with quote

You can run wireshark (aka etherreal) to sniff all traffic.
_________________
[Host: Arko]
ASUS G1S
http://gentoo-wiki.com/HARDWARE_Asus_G1S
[Host: Pandora]
PIII 1Ghz (133) / 512MB
1x40GB & 60GB (mdRAID1)
Hardened Stage 1 Server
[Host: Plato]
verkauft (OpenSuse 11.0)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum