Re: Help with NAT
From: Antoine EMERIT (antoine.emerit_at_online.fr)
Date: 12/23/03
- Next message: archibald: "Re: prism2_plx module problem"
- Previous message: User: "Re: Help with NAT"
- In reply to: Jimmy Jam: "Help with NAT"
- Next in thread: Jimmy Jam: "Re: Help with NAT"
- Reply: Jimmy Jam: "Re: Help with NAT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: archibald: "Re: prism2_plx module problem"
- Previous message: User: "Re: Help with NAT"
- In reply to: Jimmy Jam: "Help with NAT"
- Next in thread: Jimmy Jam: "Re: Help with NAT"
- Reply: Jimmy Jam: "Re: Help with NAT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|