Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2003, 05:44 PM
Default Can iptables automatically allow udp when desired, but block it the rest of the time?



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


Tad Marko
Reply With Quote
  #2  
Old 12-11-2003, 11:30 PM
Leon.
Guest
 
Posts: n/a
Default Re: Can iptables automatically allow udp when desired, but block it the rest of the time?


"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

Tags
automatically, block, desired, iptables, rest, time, udp

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
Forum Jump


All times are GMT. The time now is 09:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.