SlackwareThis Forum is for the discussion of Slackware Linux.
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 a fresh install of slack 9.1. I rebooted after installation was finished, at the time I only had one NIC installed. DHCP work perfect, and I was able to access the internet, I was pluged into the hub btw. I installed my second NIC card, everything worked perfectly again, and the second nic is configured to not use DHCP, I assigned it an ip and netmask. So now everything is working fine, able to get on the internet. I unplug the box from the hub, and plug it directly into the cable modem. reboot, DHCP dosent work, it says broadcasting DHCP_REQUEST for 192.168.1.1. It wont access the net or anything. Any help would be greatly appriciated.
What I'm trying to do with the two NICS is set up a linux firewall for my network. Have the cable modem pluged directly into eth0, and then my network pluged into eth1, and creating iptables, and all that fun stuff.
I've got pretty much the same setup. My dsl goes straight from my phone jack to my dsl modem. Then from the modem it goes to my slack box to the first nic which is eth0. Then from the second nic which is eth1 it goes to my windows comp. Follow that and you'll have your slackware box setup as a router.
You'll have to enable ip-masqurade and make sure eth0 and eth1 are setup properly
ok, I got the jest of that down already, guess I should have made me question a little bit more clear. How do you set up IP masquarding? And what is the proper steup for eth0 adn eth1? Do you just mean properly setup in rc.inet1.conf?
Also, if I plug eth0 into the router, with my cable modem plug into the router, I have internet on my linux box(and all boxes). But if I plug the cable modem directly into eth0, i have no internet. Is there a setting somewhere you have to change from network directly to internet connection?
Ok, I got that issue resolved. I can now hook my cable modem directly to eht0, and have internet on my linux box. I can hook eth1 to my hub, and the link lights work, but I cant get access to the internet on any of my other boxes, after configuring them to use the gateway(linux box) does anyone know of a tutorial that tells how to do what I'm trying to do?
You want to run a masquerading firewall - systems behind the firewall masquerade as the IP address of the firewall's external (Internet-facing) interface. This reference http://www.linuxguruz.com/iptables/ has a bunch of HOWTOs and a masquerading firewall script. Please read the HOWTO first before implementing the firewall script so that you know the theory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.