All of lore.kernel.org
 help / color / mirror / Atom feed
* Forwarding HTTP question
@ 2003-07-04 13:41 Guilherme Viebig
  2003-07-04 17:32 ` David Busby
  2003-07-05  5:22 ` Joel Newkirk
  0 siblings, 2 replies; 4+ messages in thread
From: Guilherme Viebig @ 2003-07-04 13:41 UTC (permalink / raw)
  To: *netfilter

My Firewall has two interfaces

eth0 200.123.234.111
eth1 192.168.0.1

I have an internal webserver on 192.168.0.33

How can I setup iptables to forward incoming traffic by eth0 to port 80 go
to 192.168.0.33:80 ?

Thanks


Guilherme B. Viebig





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

* Re: Forwarding HTTP question
  2003-07-04 13:41 Forwarding HTTP question Guilherme Viebig
@ 2003-07-04 17:32 ` David Busby
  2003-07-05  5:22 ` Joel Newkirk
  1 sibling, 0 replies; 4+ messages in thread
From: David Busby @ 2003-07-04 17:32 UTC (permalink / raw)
  To: Guilherme Viebig, *netfilter

Yes, it's in section 6 - 10 of the howto.
Start here: http://www.netfilter.org/documentation/HOWTO//NAT-HOWTO-6.html


/B
----- Original Message ----- 
From: "Guilherme Viebig" <guilherme@plannercorretora.com.br>
To: "*netfilter" <netfilter@lists.netfilter.org>
Sent: Friday, July 04, 2003 06:41
Subject: Forwarding HTTP question


> My Firewall has two interfaces
>
> eth0 200.123.234.111
> eth1 192.168.0.1
>
> I have an internal webserver on 192.168.0.33
>
> How can I setup iptables to forward incoming traffic by eth0 to port 80 go
> to 192.168.0.33:80 ?
>
> Thanks
>
>
> Guilherme B. Viebig
>
>
>



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

* Re: Forwarding HTTP question
  2003-07-04 13:41 Forwarding HTTP question Guilherme Viebig
  2003-07-04 17:32 ` David Busby
@ 2003-07-05  5:22 ` Joel Newkirk
  2003-07-05 13:43   ` Ray Anderson
  1 sibling, 1 reply; 4+ messages in thread
From: Joel Newkirk @ 2003-07-05  5:22 UTC (permalink / raw)
  To: Guilherme Viebig; +Cc: *netfilter

On Fri, 2003-07-04 at 09:41, Guilherme Viebig wrote:
> My Firewall has two interfaces
> 
> eth0 200.123.234.111
> eth1 192.168.0.1
> 
> I have an internal webserver on 192.168.0.33
> 
> How can I setup iptables to forward incoming traffic by eth0 to port 80 go
> to 192.168.0.33:80 ?

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.0.33

j




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

* RE: Forwarding HTTP question
  2003-07-05  5:22 ` Joel Newkirk
@ 2003-07-05 13:43   ` Ray Anderson
  0 siblings, 0 replies; 4+ messages in thread
From: Ray Anderson @ 2003-07-05 13:43 UTC (permalink / raw)
  To: 'Joel Newkirk'; +Cc: netfilter

And don't forget to ALLOW the packets in the first place.  Made me crazy the
first time I did that....Put in the FORWARD rule, but no ACCEPT rule.  

$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport   80 -j allowed
#HTTP

-=Ray

-----Original Message-----
From: Joel Newkirk [mailto:netfilter@newkirk.us] 
Sent: Friday, July 04, 2003 10:23 PM
To: Guilherme Viebig
Cc: *netfilter
Subject: Re: Forwarding HTTP question


On Fri, 2003-07-04 at 09:41, Guilherme Viebig wrote:
> My Firewall has two interfaces
> 
> eth0 200.123.234.111
> eth1 192.168.0.1
> 
> I have an internal webserver on 192.168.0.33
> 
> How can I setup iptables to forward incoming traffic by eth0 to port
80 go
> to 192.168.0.33:80 ?

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to
192.168.0.33

j




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

end of thread, other threads:[~2003-07-05 13:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-04 13:41 Forwarding HTTP question Guilherme Viebig
2003-07-04 17:32 ` David Busby
2003-07-05  5:22 ` Joel Newkirk
2003-07-05 13:43   ` Ray Anderson

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.