Setup Redhat 5.10 as a router (open ports)

K

Kevin Kieu

Guest
hi everyone,

I'm new to this Linux thing & I tried to setup my old computer with Redhat 5.10 as a router. I already read all kinds of stuff on the internet but I still don't know how to open port to a server. Could someone tell me what I'm doing wrong?

[root@router ~]# iptables -nvL
Chain INPUT (policy ACCEPT 60 packets, 7520 bytes)
pkts bytes target prot opt in out source destination
101 9424 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
58 6796 ACCEPT all -- eth0 * 0.0.0.0/0 0.0.0.0/0
8 560 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT tcp -- * * 0.0.0.0/0 10.224.27.150 tcp dpt:3389 flags:0x17/0x02

Chain FORWARD (policy ACCEPT 1981K packets, 2954M bytes)
pkts bytes target prot opt in out source destination
1042K 47M ACCEPT all -- eth0 eth1 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT tcp -- * * 0.0.0.0/0 10.224.27.150 tcp dpt:3389 flags:0x17/0x02

Chain OUTPUT (policy ACCEPT 179 packets, 24760 bytes)
pkts bytes target prot opt in out source destination

Chain RH-Firewall-1-INPUT (0 references)
pkts bytes target prot opt in out source destination


Chain PREROUTING (policy ACCEPT 1644 packets, 96060 bytes)
pkts bytes target prot opt in out source destination
0 0 DNAT tcp -- eth1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3389 to:10.224.27.150:3389

Chain POSTROUTING (policy ACCEPT 9 packets, 1505 bytes)
pkts bytes target prot opt in out source destination
1627 92846 MASQUERADE all -- * eth1 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT 13 packets, 1833 bytes)
pkts bytes target prot opt in out source destination
 


If you're running RHEL 5.10, you have paid support - use it.
 

Members online


Top