LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-18-2008, 04:36 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
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?
 
Old 07-18-2008, 04:49 PM   #2
vehn
Member
 
Registered: Dec 2007
Posts: 54

Rep: Reputation: 17
see slackbook (on dvd).

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
 
Old 07-18-2008, 04:52 PM   #3
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
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?
 
Old 07-18-2008, 05:07 PM   #4
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by linuxhippy View Post
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.
 
Old 07-18-2008, 09:44 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

Switches are cheap. 3com, netgear, linksys and Icom to name a few. That doesn't include the el cheapo China switches.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack based FW/Router l0rddarkf0rce Slackware 2 07-17-2006 02:45 PM
RH8 server is NAT router, but getting a new router. WorldBuilder Linux - Networking 1 06-08-2006 05:54 PM
Slack as router ntamp Slackware 4 11-17-2005 08:52 AM
slack as a router / gateway...? qwijibow Slackware 7 07-23-2004 08:00 AM
slack firewall/router? uvone Slackware 1 02-28-2004 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration