1 |
iptables –t nat –A PREROUTING –i eth0 –s ! 192.168.1.100 –p tcp –dport 80 –j REDIRECT –to-port 8080 |
2 |
|
3 |
|
4 |
|
5 |
From: widyachacra [mailto:widyachacra@×××××.com] |
6 |
Sent: Tuesday, October 16, 2007 9:04 AM |
7 |
To: gentoo-server@l.g.o |
8 |
Subject: [gentoo-server] skip transparent proxy for specific ip address |
9 |
|
10 |
|
11 |
|
12 |
Dear list friends, |
13 |
|
14 |
I'm using a squid transparent proxy on my gateway(gentoo box). follow command i entered to route my all 80port request to redirect through the squid server. |
15 |
|
16 |
command, |
17 |
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 |
18 |
|
19 |
Now i want to skip my pc going through the transparent proxy server, my pc ip address is 192.168.1.100. please help me to do this. |
20 |
|
21 |
|
22 |
-- |
23 |
--- |
24 |
|
25 |
- Widyachacra Rajapaksha - |