Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: iptables: User

PREROUTING problem

 

 

iptables user RSS feed   Index | Next | Previous | View Threaded


diegok at gmail

Aug 27, 2007, 7:26 AM

Post #1 of 1 (746 views)
Permalink
PREROUTING problem

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

iptables user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.