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

Re: DNAT



also sprach Mattia Martinello <liste@mattiamartinello.com> [2003.08.29.0112 +0200]:
> iptables -t nat -A PREROUTING -p tcp -i eth1 -d $PublicIP -j DNAT
> --to $ServerIP

This works?

> This DOESN'T work!
> iptables -t nat -A PREROUTING -p tcp -i ppp0 -d $PublicIP --dport
> 80 -j DNAT --to $ServerIP:80

Please use tcpdump on the firewall and record what happens when you
send a packet from the internet to $PublicIP port 80.

-- 
Please do not CC me when replying to lists; I read them!
 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, and user
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: pgpIJpihI4LvG.pgp
Description: PGP signature


Reply to: