Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-15-2013, 07:18 AM
|
#1
|
Member
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410
Rep:
|
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.
|
|
|
08-15-2013, 12:39 PM
|
#2
|
Member
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|