Quote:
Is it possible to block outbound traffic by port?
|
yes its possible and with firewalls we can do just that. for example i have a line in my firewall which blocks all traffic at port 1863 (thats used by msn-messenger service):
Code:
/sbin/iptables -A FORWARD -p tcp -s $MY_LAN -d $ENTIRE_GLOBE --dport 1863 -j REJECT
this line in iptables checks each incoming request from $MY_LAN addresses and checks whether the request is made for a distant 1863 port, if yes, it just rejects the packet.
you can do the similar thing from your squid also but i haven't used squid for that purpose and i really have to check that out myself before saying anything.
now the above thing(s) only work if your packet goes through your squid or firewall. what if they don't?