Click to See Complete Forum and Search --> : ipchains - RedHat 7.3


goon12
03-02-2005, 09:22 PM
Hi,
I've got a box here doing portforwarding for our small LAN. Almost everything has been working fine. eth0 is connected to the cable modem, and eth1 is connected to a hub ( as are the rest of the LAN clients ). What I want to do is get Azerus working, and that needs port 6881 to be accessible. So I guess what I want is connections coming into my external IP address on port 6881 to be redirected to the internal IP of a box ( 192.168.0.5 port 6881 ).

Here is what I have for a rule right now

ipchains -A forward -j ACCEPT -l -p tcp -s 0.0.0.0/0 6881 -d 192.168.0.5 6881


When I do ipchains -L, I see this

.
.
Chain forward (policy DENY):
target prot opt source destination ports
acctout all ------ anywhere anywhere n/a
MASQ all ------ 192.168.0.0/24 anywhere n/a
MASQ all ------ 192.168.0.0/24 anywhere n/a
ACCEPT tcp ----l- anywhere internal.host.name 6881 -> 6881
DENY all ----l- anywhere anywhere n/a
.
.
.

( internal.host.name is different )

This doesn't seem to be working, I have been trying to get this working for a day or 2 now. Can someone please help me get this working?

Thanks,
goon12

PS - My network skills are not that great ;)

jumpedintothefire
03-02-2005, 09:45 PM
With ipchains you need to have a package call ipmasqadm installed, to enable port forwarding. If your running a 2.2 kernel, install the package.
If your on a 2.4 kernel you need to move over to iptables, as most of the advanced features that port forwarding uses, require iptables.