Re: Help with NAT

From: Antoine EMERIT (antoine.emerit_at_online.fr)
Date: 12/23/03


Date: 23 Dec 2003 11:54:01 GMT

jameslwhite@qwest.net (Jimmy Jam) écrivait
> routing table. I have a NAT rule established to PREROUTE all requests
> comming from port 443 to the internal ip and port. How do I set up
> the routing table and is there anything else I need to configure?

On 2.4.x kernel, use the 'iptables' command :

iptables -t nat -A PREROUTING -d 0.0.0.0/0 -p tcp --dport 443 -i eth0 -j
DNAT --to-destination 192.168.0.10

where eth0 is your public input interface (maybe ppp+ for ppp connexion),
and 192.168.0.10 is your internal server

Use 'iptable -t nat -L' to see your current NAT rules

Have a look at http://www.netfilter.org for full information.

Regards



Relevant Pages

  • RE: Routing problem
    ... You say you promote the properties in the send port. ... be promoted and BizTalk can use them to route the message. ... the messages gets suspended with a 0c0c01680 Routing Failure: ...
    (microsoft.public.biztalk.general)
  • Re: Cant use internal network after dialup modem is used -- get ping: sendto: Operation not permitte
    ... > "Where is the nameserver told what port to use to resolve hostnames into IP ... using the routing tables and the connect-to address ...
    (comp.os.linux.setup)
  • Re: PC Anywhere
    ... routing and remote access ... >> one for port 5631 point it to the IP address of the work station you want ... I went into Administrative Tools> Routing and Remote Access and, ...
    (microsoft.public.windows.server.sbs)
  • Re: read hang on datagram socket
    ... >> port 0, an ephemeral port is assigned right away. ... > Programming in the UNIX Environment). ... > the routing table for each: ...
    (freebsd-hackers)
  • Help with NAT
    ... I have an IIS server that I would like to put behind a linux firewall ... port 443 requests to the appropriate internal server. ... the routing table and is there anything else I need to configure? ...
    (comp.os.linux.networking)