> Hi, > > Sorry, another question, things aren't working well for me tonight. If > I want traffic to port 777 on a host to be redirected to another host on > the same LAN, will this do the job? > > I'm on host 198.81.129.100, and I want all traffic from IP address > 207.155.252.12 to port 777 to be redirected to a different host, .101 on > the same network, if I try this rule it fails: > > iptables -t nat -I PREROUTING --source 207.155.252.12 -p tcp --dport 777 > -j DNAT --to-destination 198.81.129.101 > > But I don't see anything in the logs. I tried permitting all traffic to > port 777 in for FORWARD and OUTPUT tables, but that didn't make a > difference. > > Any ideas? iptables -t nat -I POSTROUTING -p tcp --dport 777 -s 207.155.252.12 \ -d 198.81.129.101 -j SNAT --to-source 198.81.129.100 -j