connect to different port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

I would like to have it so that a connection (destined for port 8080) comes in on eth0 and jumps to port 3389

$IPT -t nat -A PREROUTING -i eth0 -p tcp --dport 8080 -j DNAT --to 192.168.111.248:3389
$IPT -t filter -A FORWARD -i eth0 -p tcp --dport 8080 -d 192.168.111.248 -j ACCEPT

For some reason, I cant get this to work.

I cant use:
$IPT -t nat -A PREROUTING -i eth0 -p tcp --dport 3389 -j DNAT --to 192.168.111.248:3389
$IPT -t filter -A FORWARD -i eth0 -p tcp --dport 3389 -d 192.168.111.248 -j ACCEPT

as this is already in use for another machine


If anyone has the answer i would be most grateful.

Kind Regards
Brent Clark


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux