« Return to Thread: local proxy

local proxy

by Umar :: Rate this Message:

Reply to Author | View in Thread

Dear Members!!

 I want to restrict my users that they don't bypass my squid proxy in linux iptables I achieved with these rulese.

$IPTABLES -t nat -A PREROUTING -s 192.168.1.0/24 -d ! 192.168.1.250 -p TCP --dport 3128 -j DROP
$IPTABLES -t nat -A PREROUTING -s 192.168.1.0/24 -d ! 192.168.1.250 -p TCP --dport 8080 -j DROP
$IPTABLES -t nat -A PREROUTING -s 192.168.1.0/24 -d ! 192.168.1.250 -p TCP --dport 80 -j DROP
$IPTABLES -t nat -A PREROUTING -s 192.168.1.0/24 -d ! 192.168.1.250 -p TCP --dport 6588 -j DROP

now please help me how I can do the same thing with PF

Regards,

Umar Draz

 « Return to Thread: local proxy