Simple enough...iptables..port forwarding
Hi guys,
I just wanted a little help. Could someone give me some sample IPTABLES lines to do port forwading of ports 7750:7751 for both UDP and TCP, to a machine (192.168.100.11). The router/firewall has: -eth0 as the internal NIC on IP 192.168.100.1 and -eth1 as the external NIC on a dynamic IP And also, isn't #IPTABLE --check suppose to be the command to do rule checking with ITPABLES? If not, what is it to do rule checking please? Thanks Alot |
Try:
iptables --check [chain] to test this packet on chain Try man iptables to see all commands |
Portforwading???????
Somebody....Anybody....HELP!!!!!! |
use
iptables -t NAT |
Yopu may have already sorted this but a rule like the following should work
iptables -t nat -A PREROUTING -p tcp --dport 7750:7751 -i eth1 -j DNAT --to 192.168.100.11 any connection to eth1 on ports 7750 or 7751 will be passed through to 192.168.100.11 (just change tcp fpr udp for the udp part). Rich |
All times are GMT -5. The time now is 12:15 PM. |