I was set up Ubuntu 9.10 karmic koala server as Squid box.
Squid has been installed and work very well, then bridge 2 NIC and configure squid as transparent proxy.
install bridge utils
$ sudo apt-get update
$ sudo apt-get install bridge-utils
edit /etc/rc.local
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig eth0 0.0.0.0
ifconfig eth1 0.0.0.0
ifconfig br0 192.168.1.2 netmask 255.255.255.0 up
route add default gw 192.168.1.1
#add this rule for configure transparent proxy
iptables -t nat -A PREROUTING -s 192.168.1.1/24 -p tcp --dport 80 -j REDIRECT --to-port 3128
Save and restart
- Home
- LINUX TUTORIAL
- Routeros Mikrotik Tutorial - Tutorial Bridge On Ubuntu
Routeros Mikrotik Tutorial - Tutorial Bridge On Ubuntu
Related Posts
Subscribe to:
Post Comments
(
Atom
)
Comments
Post a Comment