Skip to contentSkip to conversation

a problem on visiting DMZ servers when apply DNAT?

DISCUSSION Ö£´«²¨ 2 participants 2 messages Jun 16, 2002 netfilter

lore
Share & tools
lore
#0 lore raw

we use linux as the firewall. we have a web server,as we made a DNAT rule on the firewall,the people can visit it from internet by address 202.38.128.1(just a example,not real).

            (202.38.128.1)
internet----------firewall------------localhost
                    |                (192.168.0.10)
                    |
                 www server
                 (10.0.0.2)

the problem is the localhost can no longer visit the web server with the same IP(we also have a dns server,people visit that with domain name). we can only visit it by the IP 10.0.0.2. the people don't like that. but i don't know how to solve the problem. any idea? thanks in advance.

chuanbo zheng

#1 lore raw

See patch-o-matic/submitted/local-nat.patch

Regards
Henrik

Quoted 19 lines · Ö£´«²¨

we use linux as the firewall. we have a web server,as we made a DNAT rule on the firewall,the people can visit it from internet by address 202.38.128.1(just a example,not real).

            (202.38.128.1)

internet----------firewall------------localhost

                    |                (192.168.0.10)

                 www server
                 (10.0.0.2)

the problem is the localhost can no longer visit the web server with the same IP(we also have a dns server,people visit that with domain name). we can only visit it by the IP 10.0.0.2. the people don't like that. but i don't know how to solve the problem. any idea? thanks in advance.

chuanbo zheng