RE: internal web server

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

 



I have tried both.
I used "iptables -nvL" and saw that there were like 2 packets each attempt to access the web server. But gets no reply. :D


fritz <www.mesedilla.com>
---
+ Basta Ikaw Lord



> -----Original Message-----
> From: Thorsten Scherf [mailto:tscherf@xxxxxx]
> Sent: Friday, September 05, 2003 9:58 PM
> To: Fritz Mesedilla; netfilter@xxxxxxxxxxxxxxxxxxx
> Subject: Re: internal web server
> 
> 
> >- external ip of firewall 202.138.128.xxx
> >- internal ip of firewall 192.168.247.3
> >- internal web server with ip 192.168.247.5
> >
> >This was what my code was...
> >$IPT -t nat -A PREROUTING -p tcp -d 192.168.247.3 --dport 80 -j DNAT
> > --to-destination 192.168.247.5:80
> >
> >It doesn't seem to work. I have set the web server to use the gw of
> > 192.168.247.3
> 
> Not really sure what you want, but if you try to write a rule 
> for forwarding 
> packets which destination Port 80 to your internal web 
> server, try this 
> one:
> 
> $IPT -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 
> 192.168.247.5:80
> 
> If you know your external fw-IP you can specify it in the rule:
> 
> $IPT -t nat -A PREROUTING -p tcp --dport 80 -d 
> 202.138.128.xxx -j DNAT 
> --to-destination 192.168.247.5:80
> 
> 
> Greetings,
> 
> Thorsten Scherf,
> RHCE, RHCX
> 
> 

----------------------------------------------------------------------
This email 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 email in error please notify
the sender immediately by e-mail and delete this e-mail from your
system. Please note that any views or opinions presented in this
email are solely those of the author and do not necessarily represent
those of the company. Finally, the recipient should check this email
and any attachments for the presence of viruses. The company accepts
no liability for any damage caused by any virus transmitted by this
email. 

Overture Media, Inc.
Direct Line: (632) 635-4785
Trunkline:   (632) 631-8971 Local 146
Level 1 Summit Media Offices, Robinsons Galleria EDSA Cor. Ortigas Ave., Quezon City 1100




[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