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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Could anybody tell me or point me to some tutorials on what exactly the mangle table of iptables can do and how to use the mangle table?
What I actualy need is this:
(NETMAP) a 1:1 NAT function for whole networks.For example,for a a network containing 254 hosts using private IP addresses (a /24 network), and we just got a new /24 network of public IP's. Instead of walking around and changing the IP of each and every one of the hosts, useing the NETMAP target like -j NETMAP -to 10.5.6.0/24 , all the hosts are seen as 10.5.6.x when they leave the firewall. For example, 192.168.0.26 would become 10.5.6.26.
This (and above)i found in the iptables tutorial.
Eg. iptables -t mangle -A PREROUTING -s 192.168.1.0/24 -j NETMAP --to 10.5.6.0/24
I come across mangle here and want to know about it!
I haven't been able to find out much about it.. But there is some information on NETMAP here. There is also more information on the mangle table in there.
If that isn't too much help, then consider taking a look at one of the tutorials here - hopefully one of them will be of use!
One observation, remapping to public IP addresses may expose all 254 hosts to external attack, 24/7. MASQUERADE or SNAT helps to keep the script kiddies out and saves on valuable IP addresses, you never know when you'll need a spare one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.