Networking Forums

Networking Forums > Computer Networking > Linux Networking > Can iptables automatically allow udp when desired, but block it the rest of the time?

Reply
Thread Tools Display Modes

Can iptables automatically allow udp when desired, but block it the rest of the time?

 
 
Tad Marko
Guest
Posts: n/a

 
      12-11-2003, 04:44 PM
Howdy!

I normally turn UDP traffic off at my firewall, but this is causing a
friend to not be able to play half-life against an external server. Is
it possible to write iptables rules such that udp traffic will be
normally blocked, but allowed in when his masqueraded machine starts
to converse with a game server, and then go back to blocked when he's
done playing?

Thanks
Tad
 
Reply With Quote
 
 
 
 
Leon.
Guest
Posts: n/a

 
      12-11-2003, 10:30 PM

"Tad Marko" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Howdy!
>
> I normally turn UDP traffic off at my firewall, but this is causing a
> friend to not be able to play half-life against an external server. Is
> it possible to write iptables rules such that udp traffic will be
> normally blocked, but allowed in when his masqueraded machine starts
> to converse with a game server, and then go back to blocked when he's
> done playing?



well the masquerading should be doing this already.

you probably have outgoing udp blocked. you have to allow his half life udp
packets to go out.
then the masquerading will set it leave and let the half life packets come
in to. pretty much thats how masquerading works , for tcp, udp and icmp.

There are application specific helper modules for masquerading eg for non
passive ftp.
but not needed for applications normally.



>
> Thanks
> Tad



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using iptables to block OUTBOUND port 25? deja3-user@bitrealm.com Linux Networking 6 02-18-2008 05:58 AM
iptables- block mac address off by one Linux Networking 4 11-09-2007 06:15 PM
automatically log off users logon time not working Joe Windows Networking 5 02-18-2005 04:04 PM
can iptables block inurl searches? arvid Linux Networking 2 02-11-2005 05:01 PM
iptables block host name instead of ip address - Linux Networking 2 02-04-2005 08:56 AM



1 2 3 4 5 6 7 8 9 10 11