LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-31-2005, 05:06 PM   #1
pedrog
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Rep: Reputation: 0
Question Firewall configuration


Hi,

I'm newbie into linux. Just set up a Fedora Core 3 box, and now i'm strugling to get iptables configured.

I'm using fwbuilder, and for now i was able to set part of my job.

My linux box has 2 nic iterfaces and it is behind a linksys router. I wan't to stop using the linksys firewall and change it to the linux box.

my nics are set to 192.168.150.1 (inside) and 192.168.50.1 (outside). The entire network is on the 192.168.50.

I only can get it to work if the linksys is on the same class (192.168.50.) than the internal lan. My intentions were to assign the linksys a 192.168.150.x address and use the linux box to forward trafic form the lan to the linksys.

Used fwbuilder and created a NAT rule like this

ORIGINAL SRC: 192.168.50.x
ORIGINAL DEST: ANY
ORIGINAL SRV: ANY
TRANSLATED SRC: outside
TRANSLATED DEST: ANY
TRANSLATED SRV: ANY

Where outside is the linux nic for the 192.168.150.x network.

Can someone helpe me ?
 
Old 01-31-2005, 05:18 PM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Outside should be the firewall itself using the external IP. As I understand you are using the inside IP, but you want everything coming in from the router to be translated to the local network and vice versa.
 
Old 02-01-2005, 02:15 AM   #3
pedrog
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Outside is the firewall "external" ip (something like 192.168.150.1) the linksys router is on 192.168.150.100 and it has the DSL connection. I also want to be able to access the linksys control pannel from the lan
 
Old 02-01-2005, 02:19 AM   #4
pedrog
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Note:

I want everyting comming from the inside network 192.168.50.x to be forwarded to the router 192.168.150.100 using the firewall (192.168.50.1 and 192.168.150.1)

I want just a few ports comming from the internet through the router (192.168.150.100) to be forwarded to specifique computer in the internal network (192.168.50.x) using the firewall (192.168.50.1 and 192.168.150.1)
 
Old 02-03-2005, 06:04 AM   #5
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
wow

well you should consider connecting DSL to your primory NIC and there's no need to do all that NAT use just IP MASQ for 2nd NIC
 
  


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
Firewall configuration EvilAngel Linux - Networking 3 02-05-2005 07:23 AM
firewall configuration rakesh_em Slackware 9 10-13-2004 07:58 PM
Firewall configuration kevinm2 Linux - Security 5 08-19-2004 12:02 PM
firewall configuration Santas Mandriva 7 12-19-2003 10:06 AM
Firewall configuration Lazlo Linux - Networking 1 11-09-2001 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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