From: =?iso-8859-1?Q?Oriol_Magran=E9?= Subject: Simple newbie's question Date: Mon, 16 Feb 2004 18:29:11 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <001701c3f4b2$648798f0$a704a8c0@mpro4167> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0014_01C3F4BA.C5D26420" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C3F4BA.C5D26420 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ------=_NextPart_000_0014_01C3F4BA.C5D26420 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
    Hello!!
    I have a linux box = (with ip=20 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=20 forwarding on the box itself, so that outgoing connections to port 80 of = host=20 212.59.199.45 goes to port 110 of host 212.59.199.75.
 
    So I = do:
 
        = iptables -t=20 nat -A PREROUTING -p tcp -d 212.59.199.45 --dport 80 -j DNAT --to=20 212.59.199.75:110
 
    Which it seems the = logical thing=20 to do.
    But when I telnet = 212.59.199.45=20 80 the kernel continues to send packets to port 80 of = 212.59.199.45=20 ignoring my wishes and commands.
    What am I doing=20 wrong?
 
    Thank you very much = in=20 advance!!
 
    Oriol
    = Barcelona
 
 
------=_NextPart_000_0014_01C3F4BA.C5D26420--