-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > On Saturday 13 September 2008 23:36:13 pk wrote: > Hello, > > I am using shorewall on my local computer (the same I'm surfing the web > ... > original site) shows up. While trying to block the additional ip address > with both "iptables -A INPUT -s xxxx -j DROP" and "iptables -A OUTPUT -d > xxxx -j DROP" it still sends a SYN request to this site. This makes > firefox just sit there waiting for a time-out. How can I prevent firefox > from accessing the other site, while still accessing the original one? >
HTTP requests are sent over TCP, so try a REJECT with TCP reset instead. Something like this should do the trick, since the connection would be reset more or less instantly avoiding the timeout: iptables -A INPUT -s xxxx -p tcp -j REJECT --reject-with tcp-reset iptables -A OUTPUT -s xxxx -p tcp -j REJECT --reject-with tcp-reset Regards //Tony -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFIzM9mJDzv6DN+QUkRAuQUAJ9ddYprAGKNHHSHvyTugu0HkKmB6gCgv87O IKaE8FG5B8RVSrNPFVYCpyg= =PKLJ -----END PGP SIGNATURE-----