This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C2F479.20CAB190 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Bert, Hi All I finished the reading of you Linux Advanced Routing & Traffic Control HOWTO... Congratulations for the excelent job ! You HOWTO helped me to implement my firewall and NAT/Routing. Could you please help me in a little doubt that I can't figure ? I have just one C IP: 200.189.73.130 This IP answers for two hosts: <http://www.realad.com.br/> www.realad.com.br and <http://www.realmedia.com.br/> www.realmedia.com.br In the begining, there was a Windows 2000 machine answering for these hosts. Today I have ( finaly ) a Linux RH 7.3 Box :) The problem is: I can't use Apache in the Linux box as web server because of some .asp applications we have here. So, I did a routing from the linux box to the Windows 2000 box, answering for my internal B IP's: 192.168.0.1 is the linux box. <http://www.realad.com.br/> www.realad.com.br has 192.168.0.2 as IP in IIS and <http://www.realmedia.com.br/> www.realmedia.com.br has 192.168.0.5 as ip in IIS. I did the following to route packages that comes from internet to port 80 in the Linux box to port 80 in the internal W2K box: iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j DNAT --to-destination 192.168.0.2:80 and, for internal routing: iptables -t nat -A PREROUTING -p tcp -d 200.189.73.130 --dport 80 -j DNAT --to 192.168.0.2:80 <http://www.realad.com.br/> www.realad.com.br and <http://www.realmedia.com.br/> www.realmedia.com.br have different contents. My problem is... How I can route packages that come to <http://www.realad.com.br/> www.realad.com.br to 192.168.0.2 and <http://www.realmedia.com.br/> www.realmedia.com.br to 192.168.0.5. Just remembering, 192.168.0.2 and 192.168.0.5 are IP from the same IIS machine. Can anybody help me ??? Thanks a lot Diogo Carlos Fernandes Technical Support Manager Real Media Latin America www.realmedia.com Phone .: 55+11+3842-2166 Mobile .: 55+11+9266-5325 e-mail .: dfernandes@realmedia.com ------=_NextPart_000_000F_01C2F479.20CAB190 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.2723.2500" name=3DGENERATOR></HEAD> <BODY> <DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial><FONT = size=3D2>Hi, Bert<SPAN=20 class=3D542304618-27032003>, Hi All</SPAN></FONT></FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial size=3D2>I = finished the=20 reading of you Linux Advanced Routing & Traffic Control = HOWTO...=20 Congratulations for the excelent job ! You HOWTO helped me to implement = my=20 firewall and NAT/Routing. </FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial size=3D2>Could = you please=20 help me in a little doubt that I can't figure ?</FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial size=3D2>I have = just one C=20 IP: 200.189.73.130</FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial size=3D2>This = IP answers for=20 two hosts: </FONT><A href=3D"http://www.realad.com.br/"><FONT = face=3DArial=20 size=3D2>www.realad.com.br</FONT></A><FONT face=3DArial size=3D2> and = </FONT><A=20 href=3D"http://www.realmedia.com.br/"><FONT face=3DArial=20 size=3D2>www.realmedia.com.br</FONT></A></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial size=3D2>In the = begining,=20 there was a Windows 2000 machine answering for these hosts. Today I have = (=20 finaly ) a Linux RH 7.3 Box :)</FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial size=3D2>The = problem is: I=20 can't use Apache in the Linux box as web server because of some .asp=20 applications we have here. So, I did a routing from the linux box to the = Windows=20 2000 box, answering for my internal B IP's: 192.168.0.1 is the linux = box.=20 </FONT><A href=3D"http://www.realad.com.br/"><FONT face=3DArial=20 size=3D2>www.realad.com.br</FONT></A><FONT face=3DArial size=3D2> has = 192.168.0.2 as=20 IP in IIS and </FONT><A href=3D"http://www.realmedia.com.br/"><FONT = face=3DArial=20 size=3D2>www.realmedia.com.br</FONT></A><FONT face=3DArial size=3D2> has = 192.168.0.5=20 as ip in IIS. </FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial size=3D2>I did = the following=20 to route packages that comes from internet to port 80 in the Linux box = to port=20 80 in the internal W2K box:</FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial = size=3D2>iptables -t nat -A=20 PREROUTING -p tcp -i eth0 --dport 80 -j DNAT --to-destination=20 192.168.0.2:80</FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial size=3D2>and, = for internal=20 routing: </FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial = size=3D2>iptables -t nat -A=20 PREROUTING -p tcp -d 200.189.73.130 --dport 80 -j DNAT --to=20 192.168.0.2:80</FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><A = href=3D"http://www.realad.com.br/"><FONT=20 face=3DArial size=3D2>www.realad.com.br</FONT></A><FONT face=3DArial = size=3D2> and=20 </FONT><A href=3D"http://www.realmedia.com.br/"><FONT face=3DArial=20 size=3D2>www.realmedia.com.br</FONT></A><FONT face=3DArial size=3D2> = have different=20 contents. My problem is... How I can route packages that come to = </FONT><A=20 href=3D"http://www.realad.com.br/"><FONT face=3DArial=20 size=3D2>www.realad.com.br</FONT></A><FONT face=3DArial size=3D2> to = 192.168.0.2 and=20 </FONT><A href=3D"http://www.realmedia.com.br/"><FONT face=3DArial=20 size=3D2>www.realmedia.com.br</FONT></A><FONT face=3DArial size=3D2> to = 192.168.0.5.=20 Just remembering, 192.168.0.2 and 192.168.0.5 are IP from the same IIS=20 machine.</FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial = size=3D2>Can <SPAN=20 class=3D542304618-27032003>anybody</SPAN> help me = ???</FONT></SPAN></DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D689292718-27032003><FONT face=3DArial size=3D2>Thanks = a=20 lot</FONT></SPAN></DIV></DIV> <DIV> </DIV> <P align=3Dleft>Diogo Carlos Fernandes<BR>Technical Support=20 Manager<BR><BR><B><FONT color=3D#ff0000>Real</FONT> Media Latin=20 America</B> <BR>www.realmedia.com </P> <P><B>Phone</B> .: 55+11+3842-2166 <BR><B>Mobile</B> .: 55+11+9266-5325=20 <BR><B>e-mail</B> .: dfernandes@realmedia.com </P> <P></P> <DIV> </DIV></BODY></HTML> ------=_NextPart_000_000F_01C2F479.20CAB190--