Simple newbie's question

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

 



 
    Hello!!
    I have a linux box (with ip 192.168.4.172) connected to the Internet through an ADSL router (with ip 192.168.4.10).
    Now I'd like to do some port forwarding on the box itself, so that outgoing connections to port 80 of host 212.59.199.45 goes to port 110 of host 212.59.199.75.
 
    So I do:
 
        iptables -t nat -A PREROUTING -p tcp -d 212.59.199.45 --dport 80 -j DNAT --to 212.59.199.75:110
 
    Which it seems the logical thing to do.
    But when I telnet 212.59.199.45 80 the kernel continues to send packets to port 80 of 212.59.199.45 ignoring my wishes and commands.
    What am I doing wrong?
 
    Thank you very much in advance!!
 
    Oriol
    Barcelona
 
 

[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