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 have loaded a system with fedora 4, and trying to use it as a gateway/firewall...
I have a few XP systems behind this gateway, the gateway is dialing up using ppp0...
The gateway has two nics eth0 and eth1. ppp0 uses eth0 and eth1 goes to my switch. I have enabled ip packet forwarding under /etc/sysctl.conf.
From the gateway i can ping google and also ping my xp systems. But cannot ping my gateway from my Xp systems.
Other info:
resolv.conf is set to isp's DNS address
my domain controller is also my DNS server for local pc addresses
I have tried this project with default masquerading firewall that ppp0 loads and also with iptables stopped completely.
I can only give you those results tomorrow, but if it would help, I used the Tutorial from this page exactly, the only difference being that i did not make use of the DHCP and DNS sections, and of course that I'm using ppp0 on eth0...
Should I do anything different when using adsl connection on eth0(ppp0)???
Please help, this looks like such a simple project, yet I cannot succeed, I've even reloaded my system...to no avail...
PS: Just a correction to my original thread - I can actually ping my gateway from my Xp systems, but cannot ping the external IP(eth0) or any website or external(outside my network) ip...
have all your xp machines been configured to use the DNS server as that of your ISP's? because what u r trying to do is a basic NAT. Even if you are sure that masquerading is working, just try out the following command :-
iptables -t nat -L
it should show you a line that says MASQUERADE under the POSTROUTING chain.
I would suggest you do the following :-
enable NAT on the linux box with the following command :-
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Then type the following command :-
echo 1 > /proc/sys/net/ipv4/ip_forward
Just see to it that you have configured the default gateway as 192.168.10.30 on all the XP machines and also, these XP machines need to be configured to use the ISP's DNS Servers for name resolution.
This works fine for me as even I am using an ADSL connection using a router (not a modem). Hope this solves your problem
I have even resorted to removing the adsl connection itself and replaced that with just another system on a different network, then used my linux box(192.168.0.30) as just a plain router. From my one xp machine i can ping both eth card of linux box, but it still does not let traffic through the "router". I have loaded debian on this box and tried the same config thinking it was maybe something wrong with Fedora, but to no avail.
I have even tried connecting without the firewall enables, just the ip packet forwarding enabled, but still no go...
Distribution: Debian (Testing/Stable), Slackware current
Posts: 27
Rep:
Joining the project
I have an old Pentium MMX to be converted into a firewall. In your case, GiX it would be maybe best to implement a distribution called coyote linux. That is a distro especially modified for routers and probably do what you want. It is copied to a floppy. As a floppy disk is limited in space, you need to specify wich drivers are needed for your comp. Then also answer a few questions, like, do you need DMZ(demiltarized zone) and some other questions. Then the installation program prepares a floppy image, i guess, and places it on your floppy. But in fact i stopped with this work somewhere in the middle, as i moved to other place I live in. But now in fact i am installing Slackware on that router machine as I want a proxy too. My wish is to use it as a free wireless network router. First just the router, then slowly add features like proxy, DMZ (for an external server with sendmail, appache and maybe something else). But for now only the router. I also postpone using my wireless card as it is a hard problem itself, on wich i have spent lots of time already. From router machine i can ping external sites. Activated IP_forwarding that was ment during installation. Maybe you can suggest a good source for information where to continue?
I second the previous posting suggesting using Coyote Linux (www.coyotelinux.org).
- Very simple to configure.
- Has a wizard to create the boot floppy on a windows machine.
- Http configuration.
- SSH access.
- Will even run on an old 486 with 16Mb of RAM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.