check that the ISP doesn't have port 80 blocked. Some ISP's block ports
under 1024 & you need to request to have the port opened.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Le Ngoc Thach
Sent: Wednesday, June 11, 2003 10:50 AM
To: [EMAIL PROTECTED]
Subject: How configure Iptable in RedHat 8.0


Hi,
I'm using iptables-1.2.6a-2 in RedHat 8.0 router, gateway and firewall.
I can not configure to implement the case:
Ex:
- External IP of gateway is 203.162.4.1, this host is also listening at
port 80 (Apache WebServer) and portal 8080 (Tomcat).
- Internal IP of gateway is 192.168.2.1
- An other internal host is 192.168.2.2, this host is listening at port
80 (IIS WebServer).

I want a user can go to http://203.162.4.1:81 to access the internal
host 192.168.2.2 that IIS is running.
I have tried to use "PREROUTING" such as

/sbin/iptables -A PREROUTING -t nat -d 203.162.4.1 -p tcp --dport 81 -j
DNAT --to 192.168.2.2:80

(View my configuration iptable in attachment).

but url "http://203.162.4.1:81"; does not work. If I try "REROUTING" to
192.168.2.1 such as:
/sbin/iptables -A PREROUTING -t nat -d 203.162.4.1 -p tcp --dport 81 -j
DNAT --to 192.168.2.1:8080

It's OK. Then, http://203.162.4.1:81 is TomCat HomePage.

What is woring? Please help me!

Thanks!


This E-mail and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they   
are addressed. If you have received this E-mail in error please notify us immediately 
and delete this E-mail from your system. Thank you.
It is possible for data transmitted by email to be deliberately or
accidentally corrupted or intercepted. For this reason, where the
communication is by E-mail, the Big Picture Group does not accept 
any responsibility for any breach of confidence which may arise through the use of 
this medium.
Opinions, conclusions and other information in this message that do not relate to the 
official business of Big Picture Group shall be understood as neither given nor 
endorsed by it.
This footnote also confirms that this email message has been swept for the presence of 
known computer viruses.


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to