LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 03-09-2011, 04:03 PM   #1
tjwilliams
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Post Firewall infront of router setup?


Hello all, I am new to this site and thoguth I would pose a question off the bat.

I am trying to setup a firewall using Centos 5.5. The machine has 2 NICs, one connecting to the ISP/Modem and the other connected to a DIR-655 wireless router. The nic is connecting to the internet port on the router.

I do not want DHCP on the Firewall machine but on the wireless router.

[ISP/Modem]<--->[machine eth0]<--->[machine eht1]<--->[DIR-655 internet port]
IP from ISP Dynamic 192.168.1.1 192.168.1.2

IP's on the DIR-655 LAN will be 124.168.0.0/24 network lets say.

I have setup routes on the eth0 192.168.0.0/24 and 124.168.0.0/24
and added 124.168.0.0/24 to eth1.

I can ping eth0 and eth1 but cannot ping 192.168.1.2.

this setup is not actually connected to the internet so I disabled iptables to try testing the ping and still no good.

Any help would be appreciated.

Thanks.
 
Old 03-10-2011, 07:06 PM   #2
tjwilliams
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
okay, so far this is what I have with the setup

Right now I have router1 wireless to a wireless bridge port 1<--->eth0 [firewall] eth1<--->router2 internet port<---><--->LAN Port 3<--->laptop.

router1 LAN = 112.168.0.0/24 network
bridge = static ip in router1 range
eth0 = dynamic from router1 (current 112.168.0.191)
eth1 = static 195.168.0.1 255.255.255.0
router2 internet port = static 195.168.0.2 255.255.255.0
router2 LAN = 195.168.1.0/24 network
laptop on router2 lan port 2 = dynamic 195.168.1.2

Currently on the firewall i can ping eth0 and eth1 and out eth0 to router1 lan IPs
I cannot ping router2 IP or the laptop

On the laptop I can ping the router2 IP and eht1. I cannot ping eth0 or beyond.
I also set SELinux to permissive and allowed ip forwarding.

dazed and confused.

Last edited by tjwilliams; 03-10-2011 at 07:09 PM.
 
  


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
Router/Firewall Setup edooze Linux - Networking 3 08-19-2007 01:44 PM
Home Router Firewall Setup jrtayloriv Linux - Security 4 12-25-2006 06:19 PM
router and firewall setup jibskg Linux - Networking 1 08-23-2004 09:01 AM
firewall setup and MX smtp router gizbourn Linux - Networking 0 02-18-2004 07:03 AM
router/firewall setup please help?! basatum Mandriva 1 09-20-2003 03:53 PM


All times are GMT -5. The time now is 01:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration