Newby Question

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

 



Help!

I can't seem to get iptables to forward to my internal server

eth0:  INTERNAL_IP
eth1:  INTERNET

WEBSERVER_IP is the ip address of the webserver

I am trying to forward port 80 to an internal machine at port 8080 and it 
doesn't work.  If I change the ip address to be eth0's ip, then it works.

# this doesn't work
$IPTABLES -A PREROUTING -t nat -i eth1 -p tcp --dport 80 \
    -j DNAT --to $WEBSERVER_IP:8080

# if I run a webserver on the firewall machine, the following works
$IPTABLES -A PREROUTING -t nat -i eth1 -p tcp --dport 80 \
    -j DNAT --to $INTERNAL_IP:8080


--
nfets@msn.com



_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp




[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