iptables howto?

Place to discuss Fedora and/or Red Hat
Post Reply
Ice9
guru
guru
Posts: 577
Joined: Thu Jan 09, 2003 12:40 am
Location: Belgium
Contact:

iptables howto?

Post by Ice9 » Tue Feb 18, 2003 5:58 pm

I have a problem with iptables.
I can't connect to any servers with Quake3 anymore, nor will XQF ping any servers.
The only thing I've changed is specify a port to open to tcp traffic for Limewire to have access.
That was port 6346 and I did that with the gui in the Start here/System settings folder.

How would I reset the iptables config to default or modify it to grant access to Quake3 again?
Here's my iptables file

Code: Select all

# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
# Note: ifup-post will punch the current nameservers through the
#       firewall; such entries will *not* be listed here.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Lokkit-0-50-INPUT - [0:0]
-A INPUT -j RH-Lokkit-0-50-INPUT
-A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -s 195.130.130.132 --sport 53 -d 0/0 -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -s 195.130.130.4 --sport 53 -d 0/0 -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --syn -j REJECT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -j REJECT
COMMIT

Ice9
guru
guru
Posts: 577
Joined: Thu Jan 09, 2003 12:40 am
Location: Belgium
Contact:

Post by Ice9 » Wed Feb 19, 2003 2:54 am

Ok, I changed that last line

Code: Select all

udp -j REJECT 
to

Code: Select all

udp -j ACCEPT 
and now both XQF and Quake3 can access the Internet servers.

But, is that right, shouldn't I specify some ports?
I believe I changed it to accept all udp traffic, but isn't that kinda dangerous?
Also I don't see any entry for tcp traffic on port 6346, and I specified that.
There shold be an entry for that since when first installing Limewire it couldn't connect and after I allowed tcp traffic on port 6346 Limewire connected fine .....

Linux often makes me feel like a complete dumbass, there's so much stuff I don't know much about, so much stuff to learn .....
And when you have 2 or 3 simutaneous problems you don't know where to start looking!

Post Reply