Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'd set a policy of DROP - and then only open what you want.
I think that might have been the intention of:
Code:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # every request should go throught the iptables
instead do:
Code:
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
# then put your mac-specific rules - they seem to be o.k.
# you can also use -A instead of -I if you put them first
# in the mac you need to use colons instead of the minus sign, e.g.: 00:15:B7:33:6A:57
#iptables -I INPUT -m mac --mac-source 00:15:B7:33:6A:57 -j DROP # Actual...final statement for droping specific mac address
iptables -I INPUT -m mac --mac-source 00:16:6F:50:64:5B -j ACCEPT # sample mechine MAC addresss
# then the other rules...for port 25, 110, 1863 and so on
I'm not sure if your rules for squid are o.k. - this is not to worry you but to say that I just don't know.
the actual scenario is that I am using squid as a proxy server.............. and for email services(SMTP/POP3) services..
but after running this script the users can easily bypass the squid so I redirect the traffic to squid default port
after that everyone is behind the proxy... but u know some executives need to be fully entertained... I just want that there should be no need to configure any configure on laptop just connect and start their work..............
although remaining should go through squid..................
Yesterday One of my friend do something interesting that in proxy settings under the explorer He simply put the
loop back (127.0.0.1: 9000) and 9 thousand series port.... and I am amazed that he opened all websites even block by me and even block by the our country's gateway..........
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.