Linux Netfilter discussions
 help / color / mirror / Atom feed
* Help Redirect
@ 2002-11-06 16:34 Linux User
  2002-11-06 17:44 ` Antony Stone
  0 siblings, 1 reply; 2+ messages in thread
From: Linux User @ 2002-11-06 16:34 UTC (permalink / raw)
  To: netfilter

Hi friends,

My consultation is the following one:

What rules (IPTABLES) in firewall I can apply so that all the requirement of 
the internal network to port 80 is redirected to an external Squid Proxy 
server (3128) .

Firewall:

Eth0 (External): 192.168.100.1
Eth1 (Internal):   172.16.100.1


Squid Proxy Server:
Eth0 : 192.168.100.100

Thanks

Joseph

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



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

* Re: Help Redirect
  2002-11-06 16:34 Help Redirect Linux User
@ 2002-11-06 17:44 ` Antony Stone
  0 siblings, 0 replies; 2+ messages in thread
From: Antony Stone @ 2002-11-06 17:44 UTC (permalink / raw)
  To: netfilter

On Wednesday 06 November 2002 4:34 pm, Linux User wrote:

> Hi friends,
>
> My consultation is the following one:
>
> What rules (IPTABLES) in firewall I can apply so that all the requirement
> of the internal network to port 80 is redirected to an external Squid Proxy
> server (3128) .
>
> Firewall:
> Eth0 (External): 192.168.100.1
> Eth1 (Internal):   172.16.100.1
>
> Squid Proxy Server:
> Eth0 : 192.168.100.100

iptables -A PREROUTING -t nat -i eth1 -p tcp --dport 80 -j DNAT --to 
192.168.100.100:3128
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth1 -p tcp --dport 3128 -d 192.168.100.100 -j ACCEPT

Antony.

-- 

Anything that improbable is effectively impossible.

 - Murray Gell-Mann, Nobel Prizewinner in Physics


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

end of thread, other threads:[~2002-11-06 17:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-06 16:34 Help Redirect Linux User
2002-11-06 17:44 ` Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox