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 am attempting to set up a Mandrake 9.1 to work as a router/firewall and am having some problems with it in the security routing area.
At least that's what I think?
It didn't like the IP address that I wanted to use so I went with its suggestion of 192.168.1.1 and reconfigured everything else on the network.
Also set the internet connections to use my ISP's DNS of 203.12.160.35 and 36 with a modem providing the connection.
The Mandrake PC will browse the net without a problem if I ping the gateway from a windows PC I get "destination host unreachable"
I have overcome this by setting the Drake Firewall to "Everything no fire wall"
But am still unable to get out to the internet from the windows PC.
The windows PC has the gateway set to 192.168.1.1 and the DNS settings to 203.12.160.35 and 36 and now sucessfully pings the gateway.
# route -n
executed on the gateway returns as the last line
Destination, Gateway, Genmask, Flags, UseIface,
0.0.0.0 203.29.131.72 0.0.0.0 UG ppp0
The gateway above 203.29.131.72 is the same as the remote address on the KPPP stastics for the modem.
So it should be able to find it's way out?
That is if it could get that far.
You have to configure ip forwarding and ip masquerading. If you are using Mandrake, I suggest you use iptables. Review the documentation at www.netfilter.org.
Ip forwarding should be disabled by default everywhere, based on the assuption that a typical PC will not have more than one network interface in it that needs to talk to the other interfaces.
Robert, (assuming RH) another option for a permanent firewall/router is to modify /etc/sysctl.conf and change
net.ipv4.ip_forward = 1
and do a /etc/rc.d/init.d/network restart
Something to consider...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.