DNAT error in access from lan

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

 



 I have 2 domains 
 work.com ----------------------- my.work.com
         |                           |
         |                           |
 ns_server.work.com             ns1_server.my.work.com
 stations.work.com               stations.my.work.com
                                 http_server.work.com
 
 into ns1_server.my.work.com there are 2 nic, eth0 
 (200.200.200.200) and eth1 (10.0.0.1/24) 
 into firewall i have http_server.work.com with 1 nic, eth0 
(10.0.0.254/24)
 
 I create 2 rolles one to my lan access web and other for 
access http_server into my lan

1 - snat 
iptables -t nat -A POSTROUTING -o eth0 -p tcp -j SNAT --to-
source 200.200.200.200
 2 - dnat
iptables -t nat -A PREROUTING -i eth0 -d 200.200.200.200 -p 
tcp -m tcp --dport 80 -j DNAT --to-destination 10.0.0.254:8080
 
 the problem =EDs:
 if i write www.work.com from my house OK  - go to my 
ns_server.work.com 
go ns1_server.my.work.com  (iptables server - Name Server)
go http_server.work.com
 if i write www.work.com from my lan, error, server not found.
 
 thanks for help.

 
---
UOL, o melhor da Internet
http://www.uol.com.br/




[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