All of lore.kernel.org
 help / color / mirror / Atom feed
* Web server access
@ 2003-07-14 15:10 Jorge Umaña
  2003-07-15 12:52 ` Ray Leach
  2003-07-15 14:19 ` Michael Martinez
  0 siblings, 2 replies; 4+ messages in thread
From: Jorge Umaña @ 2003-07-14 15:10 UTC (permalink / raw)
  To: netfilter

I have a LINUX box with a public ip. I need to use iptables to send all the 
packages that come to the 80 port to my Web server in Windows. I am using 
this chain:
iptables -t nat -A PREROUTING -p tcp -d $ipPUBLIC --dport 80 -j DNAT 
--to-destination $ipWEBSERVER

I tried to access my web page from outside but does not work

I will appreciate your help
Thanks

_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger: 
http://messenger.yupimsn.com/



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Web server access
@ 2003-07-15 12:44 Eugene Joubert
  0 siblings, 0 replies; 4+ messages in thread
From: Eugene Joubert @ 2003-07-15 12:44 UTC (permalink / raw)
  To: 'Jorge Umaña', netfilter

[-- Attachment #1: Type: text/plain, Size: 878 bytes --]

Is your web server gateway set to your be that of your linux box?

Have you tried using tcpdump to "see" what is happening with those packets
on that specific port?



-----Original Message-----
From: Jorge Umaña [mailto:jorgeaub@hotmail.com] 
Sent: 14/07/2003 05:10 PM
To: netfilter@lists.netfilter.org
Subject: Web server access


I have a LINUX box with a public ip. I need to use iptables to send all the 
packages that come to the 80 port to my Web server in Windows. I am using 
this chain:
iptables -t nat -A PREROUTING -p tcp -d $ipPUBLIC --dport 80 -j DNAT 
--to-destination $ipWEBSERVER

I tried to access my web page from outside but does not work

I will appreciate your help
Thanks

_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger: 
http://messenger.yupimsn.com/


[-- Attachment #2: Type: text/html, Size: 1756 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Web server access
  2003-07-14 15:10 Web server access Jorge Umaña
@ 2003-07-15 12:52 ` Ray Leach
  2003-07-15 14:19 ` Michael Martinez
  1 sibling, 0 replies; 4+ messages in thread
From: Ray Leach @ 2003-07-15 12:52 UTC (permalink / raw)
  To: Netfilter Mailing List

You also need to forward rules to forward the traffic to and from your
webserver.


On Mon, 2003-07-14 at 17:10, Jorge Umaña wrote:
> I have a LINUX box with a public ip. I need to use iptables to send all the 
> packages that come to the 80 port to my Web server in Windows. I am using 
> this chain:
> iptables -t nat -A PREROUTING -p tcp -d $ipPUBLIC --dport 80 -j DNAT 
> --to-destination $ipWEBSERVER
> 
> I tried to access my web page from outside but does not work
> 
> I will appreciate your help
> Thanks
> 
> _________________________________________________________________
> Charla con tus amigos en línea mediante MSN Messenger: 
> http://messenger.yupimsn.com/
-- 
--
Raymond Leach <raymondl@knowledgefactory.co.za>
Network Support Specialist
http://www.knowledgefactory.co.za
"lynx -source http://www.rchq.co.za/raymondl.asc | gpg --import"
Key fingerprint = 7209 A695 9EE0 E971 A9AD  00EE 8757 EE47 F06F FB28
--



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Web server access
  2003-07-14 15:10 Web server access Jorge Umaña
  2003-07-15 12:52 ` Ray Leach
@ 2003-07-15 14:19 ` Michael Martinez
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Martinez @ 2003-07-15 14:19 UTC (permalink / raw)
  To: Jorge Umaña; +Cc: netfilter

First make sure the windows box port 80 can be accessed from your Linux
box:
1. log on to your linux box
2. telnet windows-box 80

Then, make sure your Linux box port 80 is accessible from the Internet:

3. go to http://centralops.net/co/
4. use the "tcpquery" function to do a http query on your Linux box

Then, configure iptables on your Linux box. Configure to log port 80
rejects and redirects. Use the logging info to make sure the packets are
being redirected.

mike

On Mon, 2003-07-14 at 11:10, Jorge Umaña wrote:
> I have a LINUX box with a public ip. I need to use iptables to send all the 
> packages that come to the 80 port to my Web server in Windows. I am using 
> this chain:
> iptables -t nat -A PREROUTING -p tcp -d $ipPUBLIC --dport 80 -j DNAT 
> --to-destination $ipWEBSERVER
> 
> I tried to access my web page from outside but does not work
> 
> I will appreciate your help
> Thanks
> 
> _________________________________________________________________
> Charla con tus amigos en línea mediante MSN Messenger: 
> http://messenger.yupimsn.com/
> 
> 
-- 
Michael Martinez
Linux System Administrator
ISTM/CSREES/USDA


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-07-15 14:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-14 15:10 Web server access Jorge Umaña
2003-07-15 12:52 ` Ray Leach
2003-07-15 14:19 ` Michael Martinez
  -- strict thread matches above, loose matches on Subject: below --
2003-07-15 12:44 Eugene Joubert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.