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 am attempting to create a firewall using Slackware as the OS. The general idea is to have 2 nics, wher eth0 is aimed at the LAN and eth1 at the internet. The problem is that I can't get any response from my eth1.
At the moment I'm connected to the internet via eth0.
Are there any configurations that I have forgotten, (perhaps IRQ).?
you say your connected to the internet via eth0 currently but eth0 is assigned a local ip, thatis 192.168..
if you want to make eth1 work with your broadband you need to enable dhcp for it. Sorry that i can't remember the correct file atm as im not on a linux box right now but if you go to
/etc/rc.d/
and i believe there is a file called rc.inetd.conf
it will have a very simple layout sort of like follows
eth0
use dhcp=""
use gateway=""
hostname=""
eth1
use dhcp=""
use gateway=""
hostname=""
eth2
use dhcp=""
use gateway=""
hostname=""
eth3
use dhcp=""
use gateway=""
hostname=""
it has some other options as well that slip my mind. Maksure that use dhcp is enabled for eth1.
[edit] you enable it by typing "yes" in the paranthesis
reboot, if its not working after a reboot try starting up the dhcpcd daemon manually on the ethernet device when you have the broadband connected to it like so, I think
dhcpcd -n eth1
maybe... check the man pages for dhcpcd to see what renews the ip. Doing a
dhcpcd -k eth1
should also release the ip. Do some tests back and forth on each device. If your able to get an ip on eth0 and not eth1 or if something else is acting goofy before you get that far, then describe what happens and we can take it from there.
eth0 is connected to the internet via a router/DCHP, hence the local IP..
Would the fact that both eth0 and eth1 both occupy IRQ 11 cause the problem:
I've also have the following info on my IRQ:
bash-3.00# dmesg | grep IRQ
PCI: Using IRQ router VIA [1106/0586] at 0000:00:14.0
Serial: 8250/16550 driver $Revision: 1.90 $ 48 ports, IRQ sharing enabl
PCI: Found IRQ 11 for device 0000:00:14.2
IRQ routing conflict for 0000:00:14.2, have irq 10, want irq 11
PCI: Found IRQ 11 for device 0000:00:04.0
eth0: VIA VT6102 Rhine-II at 0x41200000, 00:50:ba:ea:00:8e, IRQ 11.
PCI: Found IRQ 10 for device 0000:00:03.0
IRQ routing conflict for 0000:00:03.0, have irq 11, want irq 10
IRQ routing conflict for 0000:01:00.0, have irq 11, want irq 10
eth1: RealTek RTL8139 at 0x2800, 00:e0:4c:02:2d:76, IRQ 11
couldn't give you a definate answer on that as I've never had issues with the such in linux before. I wouldn't really look at that being the problem anyways ( though i could be wrong ).
just one question. Why are you going from the cable modem to a router to your computer and then having your second ethernet device (the lan) going to a seperate switch where your other computers are going to be connected at.
You gave a brief overview of what you were trying to do in your first post, but could you be a little more specific about how your setting up your network?
yeah thats it, except for doing what you want to say you need to assign one of the a static ip address
so you want to use eth0 as the lan first thing you need to do is set the ipaddr to say 192.168.0.1 and give it a netmask of 255.255.255.0 and a DCHP_Hostname of whatever "yasc" is what i commonly use [yet another slackware computer]
you need to then write a dhcp.conf file to administer IP's on that set of ips and then get a switch [not a router] and plug in eth0 to that switch and any computers you want to access the internet with and plug them into that switch. next you have your eth1 that is set to receive an ip to the internet, just jack it in straight from the modem. Setup connectivity between the two network cards while establishing what rules you want for your firewall, badabing badaboom your done.
Except your eth1 isn't getting administered an IP by your router as you said. Plug the router in onto eth1 and dont plug anything into eth0 and do a dhcpcd -n eth1
this should assign an IP. If it just hangs ctrl-c out and what are the two network devices you are using, specify if they are built onto the motherboard and what you did, if anything, to set them up
I now have my settings in rc.inet.conf for eth0 as:
# Config information for eth0:
IPADDR[0]="10.0.0.2"
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]="slackbox"
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""
------------------------------------------------
My dhcpd.conf
# Global options
option domain-name "slackbox";
option domain-name-servers 10.0.0.1;
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.