Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firewall & mirrorselect
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
alexbuell
Guru
Guru


Joined: 18 Jul 2002
Posts: 498
Location: "Hemp"shire, UK

PostPosted: Thu Jun 12, 2003 6:48 am    Post subject: Firewall & mirrorselect Reply with quote

Right, after trial and error, I've devised a firewall rule to allow mirrorselect to run on the firewall itself.

In fwbuilder, just create an UDP object, and assign it the destination port range between 33435 to 33690. Add this object to the global policy, as follow: source=firewall object, destination=any, service=UDP object, action=accept, time=any.

That's it.

For those of you who prefer to be slightly more anal, here's a rule for use with IPTABLES:

$IPTABLES -A INPUT -p udp -s 192.168.0.1 --destination-port 33435:33690 -m state --state NEW -j ACCEPT

$IPTABLES -A OUTPUT -p udp --destination-port 33435:33690 -m state --state NEW -j ACCEPT

If you find this useful, let me know.
_________________
Cheers,
Alex.

Linux - the best text adventure game ever.
Back to top
View user's profile Send private message
kappert
n00b
n00b


Joined: 20 Oct 2003
Posts: 10

PostPosted: Sun Jun 13, 2004 8:14 am    Post subject: Worked for me Reply with quote

Quote:
If you find this useful, let me know.


OK: I DID find it useful :-)

Quote:
$IPTABLES -A INPUT -p udp -s 192.168.0.1 --destination-port 33435:33690 -m state --state NEW -j ACCEPT


I left the "-s 192.168.0.1" option out because I do not always have the same static IP address.
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