LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2013, 07:18 AM   #1
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Rep: Reputation: 30
Question Get a firewall/gateway in between a modem and router to reach the routers LAN.


Hi, I'm trying to use a linux gateway/firewall with 2 nics (eth0 192.168.0.2 (goes to the modem (internet) on 192.168.0.1), and eth1 192.168.1.1) to be able to log traffic specifically from LAN IP addresses. The Router is a Netgear, and is configured on 192.168.1.2 to the firewall's eth1, and 192.168.2.1 as a gateway for the LAN respectively. The router has WIFI and Ethernet ports, and is on 192.168.2.0/24 with various clients. I the firewall only shows what it drops/logs from 192.168.1.2. I would like the firewall to be "aware" of each client on the router's LAN clients, so that when it drops a packet, it will also log which computer was sending/receiving the dropped packet.

[modem] [firewall] [router] [client(s)]

How would I be able to do this? Set up static routes? Also if so, how? I was playing with them yesterday, but couldn't figure out how they would work with my typology. If it matters, I am running iptables as a firewall + suricata as an inline IPS. I can post my iptables -L output if needed, as well as my route -n output.

Thanks in advance.
 
Old 08-15-2013, 12:39 PM   #2
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Original Poster
Rep: Reputation: 30
Smile

Just wanted to say I solved my issue.

If anybody is interested or has this issue: I ended up just plugging the gateway/firewall's ethernet cable into a port on the switch, then deploying the alternate gateway throughout the network. Router says there's no internet connection because I took the cable out of the yellow port, but that's ok; so long as it works. Now my firewall is aware of all the different machines on the LAN and can differentiate when dropping and logging bad traffic. Good deal.
 
  


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
Adding new Linux firewall/router on network with pre-existing gateway/router grittyminder Linux - Networking 4 08-13-2008 02:17 AM
machine has adsl ethernet modem, to make it gateway over lan do i need more lan cards b0nd Linux - Networking 2 10-04-2005 10:19 PM
Can not reach server from LAN after adding router Jedyte Linux - Networking 8 09-01-2004 10:48 AM
ADSL Routers Setup- Microsom Deskporte router 100 and Planet ADSL modem router mabonline Linux - Hardware 1 02-27-2004 05:36 PM
LAN Gaming, with router doesn't work, but can reach the internet GT_Onizuka Linux - Networking 4 02-26-2004 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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