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.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
Can my Slack server also be a router?
I am still using Slack 12 on my server and just changed from Verizon DSL to Cavalier DSL. The modem that was sent to me only has a USB output or a single regular ethernet jack. I have 2 computers on my home network since the router that I've been using from Verizon can have 5 computers on it and I have 2 computers on the net....however only one (my Slack 12 server) is on the net 24/7. So, is there a way to get Slackware to also act as a router or is there some way to get this done in the hardware area?
Reading past threads, it looks like IP Forwarding will do this. Cavalier sold me DHCP and that's probably what I have. I have iptables enabled as a firewall....what rule(s) should I use to ensure a secure connection?
I have wireless net and use:
iptables -P INPUT DROP
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -s 127.0.0.0/8 -d 127.0.0.0/8 -i lo -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -i ath0 -j ACCEPT
iptables -A INPUT -p icmp -j ACCEPT
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
I would think that I need to install a 2nd ethernet card into my Slack box for it to be a router...is that correct?
Nope but you're logic is on the right path. You can support multiple IP addresses/subnets with the same physical NIC. One IP for the external interface and another for the internal interface. A separate physical NIC would help if you expect high traffic volumes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.