View previous topic :: View next topic |
Author |
Message |
Tinitus Veteran

Joined: 20 Sep 2004 Posts: 1754
|
Posted: Thu Sep 15, 2011 7:41 pm Post subject: Squid auf Rechner --> gleichzeitig Router |
|
|
Hallo,
ich habe einen Rechner, der über eth0 mit einem Router ans Internet angeschlossen ist.
Über br0 (also die 2. Netzwerkkarte) will ich nun squid transparent freigeben.
Mein Problem: Wie verhindere ich den Zugriff von local und vom lokalen Netz am Proxy vorbei?
Das Problem müßte ja mit IPTABLES zu lösen sein..bloß wie?
Wie geht das Portforwarding einzuschalten für IPV6?
G. Roland |
|
Back to top |
|
 |
slick Bodhisattva


Joined: 20 Apr 2003 Posts: 3495
|
|
Back to top |
|
 |
bbgermany Veteran


Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Fri Sep 16, 2011 7:41 am Post subject: |
|
|
Hi,
besserer Ansatz ist der Transparente Proxy:
Squid <2.7 Konfiguration:
Code: |
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
|
Squid >=2.7 Konfiguration:
Code: |
http_port 3128 transparent
|
Und dann iptables:
Code: |
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
|
Wenn du dann einen speziellen Rechner rausnehmen möchtest, dann kannst du den auch noch in die Regel mit:
Code: |
--source ! <ip-adresse>
|
einfügen.
Lokal sollte es dann ähnlich gehen.
MfG. Stefan _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|