Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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 want to put up a linux firewall/router for our office and I'm looking for good books to help me with my research and learning how to set this up. Can anyone recommend a good book for learning how to set up a firewall/router linux box?
Personally I have just used the online docs and tutorials. I haven't read any of the books, so I can't recommend any in good conscience. Have you tried a local library? If you find something that is a good reference for you, amazon most likely has it. Good Luck.
at first, I had difficulties understanding IP-TABLES too. So, I had my GAL read the manual I got from the internet and had her explain it to me on our date. Below is her explanations. Though it's not complete and came for a GAL of a NEWBIE, it will get your feet dancing!
FIREWALL-IN-A-GALS-POINT-OF-VIEW
IP-TABLES
- filter (table)
input,forward,output (chains for the table filter )
"I use this to check incoming, outgoing and passing packets."
- nat (table)
prerouting,output,postroute (chains for the table nat)
"I use this for masquerading pockets. see SNAT and DNAT option"
- mangle (table)
prerouting,output,input,forward,postrouting (chains for the table mangle)
"I dont know mangle yet!"
FILTER TABLE:
Accept all incoming packets from 1.2.3.4 network. -A is add rule, -s is the source and -j is jump to the action to be taken to the packet
ex1. iptables -A INPUT -s 1.2.3.4/24 -j ACCEPT
DROP all ssh coming from 1.2.3.4 network to 5.6.7.8 network. -d is the destination address and -dport is the destination port. -j DROP will drop the packet without notification. replace DROP with REJECT to politely reject the ssh request or send a .
ex2. iptables -A INPUT -s 1.2.3.4/24 -d 5.6.7.8/24 -dport 22 -j DROP
Note : it is better to make a script when creating rules. my first IP-Tables script does the following;
1) flush all rules
2) allow all access of the local host.
3) IP-TABLE Rules Rules
4) Save the rule and restart ip-tables. (optional)
I will add some more later. My mom is calling me! hehe!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.