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