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.
Hi, i need some help to configure firewall/router in Mandriva Linux.
I have installed Mandriva Linux on a machine which is suposed to be router
/firewall. I installed even shorewall during the installation of the system (i was asked if my computer was firewall computer). I use only text based installation of the Linux because I don't have appropriate graphic card and for me this is not very important. I have two network cards eth0 and eth1 in the router/firewall computer. The Mandriva firewall computer is connected to internet with eth1, and for local networking i used eth0.
The problem is: eth1 works fine and I got IP address from my internet provider but I can't "ping" computers in the local networks they don't have connection for some reason through eth0 card.
I have two questions:
1. how to configure local network?
2. how to dedicate ip addresses to computers in the local network so that they "remember" their ip addresses after they reboot?
look around for webmin in the package installer. and i cant remeber but once installed go to you browser and type something LIKE localhost:100000 . i know i may be wrong there. and it will ask you to login and click on what every you want and configure to your likings
headless means no video, keyboard or mouse plugged in.
www.webmin.com. you can use the wget command to pull the file down once you finally get to the link with the file.
ok, now to your problem, which im not quite understanding whats wrong here.
are you saying, the firewall cannot ping hosts on your local network, or are you saying that hosts cannot ping each other on your local network? you might want to do an
iptables -L
and post us the output.
can hosts ping the eth0 interface ip? (hosts *do* have ip addreses, yes?)
do hosts have the eth0 ip set as their default gateway?
can the firewall ping out to the internet?
I am using "shorewall"; now I can ping eth0, eth1 on Linux - firewall computer from my windows xp computer, i can ping from the Linux computer to the windows computer, i can start "Lynx" text webbrowser and go to the internet from the Linux computer but I can't reach the Internet from the windows computer : ( This is the last problem which I have to solve.
The linux / shorewall box has to be configured to forward ipv4 packets, and you will also need to enable NAT (called masquerading by shorewall). shorewall has very good documentation (sometimes in a shorewall-doc type package) There's an explanation for a standard 2-nic setup. and an explanation of NAT (masq) setup.
You will need to enable it; search the shorewall docs for the apropriate config file setting (I'm not at my system now), or for a quick and dirty test, "echo 1 > /proc/net/..." (I don't recall the precise name of the ipv4 flag in the proc filesystem).
there is a file which is called "masq" in the etc/shorewall catalogue and settings are as they are in the manual, but now I have another problem, when booting I got the message "shorewall version 1.2.12 does not work with kernel 2.2.20" now I use Debian, which version of shorewall do I need?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.