PREROUTING problem

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

 



Hello, I have the following problem





LAN ---------------------------------Etch Linux
Firewall-----------------------------------------------------Internet
10.1.x.x/16    |             eth1:10.1.1.1             eth0:200.3.5.100
                        |
                        |
                        |
Server1: 10.1.1.50


When I get a conection from the internet to 200.3.5.100:80, the ip
forward works OK to server1, but when I try to connect to 200.3.5.100
from the LAN its does not work, I know that i can connect to 10.1.1.50
but I need from both IPs, private and public from the LAN

I have the following config

iptables -t nat -A PREROUTING -s 0/0 -p tcp -d 200.3.5.100 --dport 80
-j DNAT --to 10.1.1.50:80
iptables -A FORWARD -p tcp -d 10.1.1.50 --dport 80 -j ACCEPT

Thanks in advance


[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