Re: iptables + access-list

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

 



Le mer 28/05/2003 à 08:32, Burak Sahin a écrit :
> MY QUESTION is;
> For two networks, A.B.C.D/a.b.c.d and E.F.G.H/e.f.g.h how can I do this?
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -d !
> A.B.C.D/a.b.c.d -j REDIRECT --to-port 3128
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -d !
> E.F.G.H/e.f.g.h -j REDIRECT --to-port 3128

	iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80
		-d A.B.C.D/a.b.c.d -j ACCEPT
	iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80
		-d E.F.G.H/e.f.g.h -j ACCEPT
	iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80
		-j REDIRECT --to-port 3128

My 0.02€

-- 
Cédric Blancher  <blancher@xxxxxxxxxxxxxxxxxx>
IT systems and networks security - Cartel Sécurité
Phone : +33 (0)1 44 06 97 87 - Fax: +33 (0)1 44 06 97 99
PGP KeyID:157E98EE  FingerPrint:FA62226DA9E72FA8AECAA240008B480E157E98EE



[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