LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-20-2024, 04:07 PM   #1
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 446

Rep: Reputation: 47
replacing an old Slackware "router" with a new one


For many years, my small home Lan has had an old dual processor 386 as my server. It runs Slackware 15. It has FINALLY reached the end of its seviceable life. I purchased a more modern (used) Pentium machine, put in a second NIC card, and tried to use it. Each machine runs BIND to throw out local addresses. In each case, I use the Arno configuration tool to hopefully set up Masquerading and filtering Internet traffic. To make sure I have not made any spelling or configuration errors I have copied the firewall configuration file from the old to the new machine. On the new server, I can mount my two NASes on different local addresses, 192.168.0.252 and 192.168.1.252. Computers connecting to the new server get and appropriate address, but only the NAS on the "0" network gets attached. They cannot go onto the Internet. Perhaps someone can offer a suggestion as to what I have mis-configured on the new machine, or what I might have missed. Thank you.
 
Old 06-20-2024, 04:19 PM   #2
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 609

Rep: Reputation: Disabled
Can you upload your config files for us to review?

On another tangent that is not related to your post, you could install a third NIC (aka eth2) and make that management.
If your new Intel machine supports virtualisation, then create a VM to load your Slackware into.
If that works, bridge eth0 (make it WAN) and bridge eth1 (make it LAN).
 
Old 06-20-2024, 04:38 PM   #3
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 446

Original Poster
Rep: Reputation: 47
I have tried to attach the configuration file, but somehow have seemingly been unsuccessful. (I have even renamed it as firewall.txt instead of firewall.conf)
Attached Files
File Type: txt firewall.txt (58.3 KB, 34 views)

Last edited by apolinsky; 06-20-2024 at 04:41 PM. Reason: trying to attach file
 
Old 06-20-2024, 09:48 PM   #4
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 609

Rep: Reputation: Disabled
You are Alan Polinsky of AP3D Consulting?
 
Old 06-21-2024, 02:27 AM   #5
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 446

Original Poster
Rep: Reputation: 47
nope

Last edited by apolinsky; 06-21-2024 at 02:28 AM. Reason: spelling
 
Old 06-21-2024, 04:46 AM   #6
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 432

Rep: Reputation: 391Reputation: 391Reputation: 391Reputation: 391
Quote:
Originally Posted by apolinsky View Post
For many years, my small home Lan has had an old dual processor 386 as my server. It runs Slackware 15. It has FINALLY reached the end of its seviceable life. I purchased a more modern (used) Pentium machine, put in a second NIC card, and tried to use it. Each machine runs BIND to throw out local addresses. In each case, I use the Arno configuration tool to hopefully set up Masquerading and filtering Internet traffic. To make sure I have not made any spelling or configuration errors I have copied the firewall configuration file from the old to the new machine. On the new server, I can mount my two NASes on different local addresses, 192.168.0.252 and 192.168.1.252. Computers connecting to the new server get and appropriate address, but only the NAS on the "0" network gets attached. They cannot go onto the Internet. Perhaps someone can offer a suggestion as to what I have mis-configured on the new machine, or what I might have missed. Thank you.
Why have you that adresse : 192.168.1.252 ?

You local network is for 192.168.0. in your config file.
 
Old 06-21-2024, 05:26 AM   #7
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,044

Rep: Reputation: 701Reputation: 701Reputation: 701Reputation: 701Reputation: 701Reputation: 701Reputation: 701
What is the netmask of your machines in your LAN? Are 192.168.1.252 and 192.168.0.252 supposed to be on the same subnet?

As BrunoLafleur wrote, there is no mention of any 192.168.1.* subnet in your firewall.conf.

regards Henrik
 
Old 06-21-2024, 07:00 AM   #8
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 446

Original Poster
Rep: Reputation: 47
netmask is 255.255.255.0 on each network. The two NASes are on different addresses, sequestered from one another. The 192.168.1.0 network is the zone that most wifi uses, while the 192.168.0.0 network is restricted to just a few locally connected machines. The Slackware "router with two NICS has two dedicated addresses, 192.168.0.1 and 192.168.1.2 which controls the routing between the two networks.
 
Old 06-21-2024, 09:41 AM   #9
HQuest
Member
 
Registered: Jan 2018
Location: 2001:470:c2d0::/56
Distribution: Anything I can interface with
Posts: 107

Rep: Reputation: Disabled
If your problems are around Internet access for clients on the 192.168.1.x subnet that have to cross the Slackware router to leave via 192.168.0.x subnet, make sure you have enabled ip_forward (check if "sysctl -a | grep net.ipv4.ip_forward" if is set to 1) on your Slackware router, you have allowed/configured your modem to NAT 192.168.1.x devices towards the external world, and you have a return route added at your modem to the 192.168.1.x subnet, using your Slackware router IP address as next hop.
 
2 members found this post helpful.
  


Reply



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
[SOLVED] After replacing wifi router, one penguin connects only ipv6 kaz2100 Linux - Networking 5 09-12-2019 10:59 PM
Old Newbie; old PC; old multi-boot setup (for the "unclean" chosen few) boombaby Linux - Desktop 2 03-10-2016 02:26 AM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
Replacing new Apache version with the old one anjanesh Linux - Newbie 3 07-12-2006 02:47 AM
Upgrading to 11g router, want to use old 11a router for "public" access pnellesen Linux - Wireless Networking 3 05-06-2006 09:02 AM

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

All times are GMT -5. The time now is 06:45 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