Jump to content

Linux, forwarding ports, tricky question...


RT

Recommended Posts

Hi

I have 2 computers with 2 different IP addresses: X and Y

X is my home PC, and Y is another PC with far better link.

Y has a linux, with iptables.

On X im running a uTorrent, with connection port configured to: 20222

Is is possible to forward this port like this:

Y:20222 -> X:20222

and configure uTorrent to announce Y IP with port 20222 as my ip and not X ip ?

iptables -t nat -A PREROUTING -p tcp --dport 20222 -s Y -j DNAT --to X:20222

iptables -t nat -A PREROUTING -p udp --dport 20222 -s Y -j DNAT --to X:20222

if im not mistaken then this two lines should do the trick, but how should i configure

uTorrent?

Best Regards

RT

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...