LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 07-28-2003, 03:14 AM   #1
djlightman
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
Question Iptables Behind Cisco NAT


Ok here goes,

I've been combing the web for weeks now and I must say it should look pretty now.. LOL.. seriously I'm trying to get an example of puting iptables behind a cisco NAT. I have a cisco router to NAT my network. Using 5 public ip's I'm taking 2 for direct 1 for 1 nat to an internal ip to a server and 1 for general
workstation traffic, surfing etc.. and the other 2 to be named later
for projects etc..

My problem is that I can't see how to setup the ip tables to get the traffice to route across it...

Here's my concept

INTERNET
| Pub ip's
************
*Cisco 4700 * Running NAT
************ and Basic Access lists
| Priv Ip suggesting 10.255.0.1
|
| Priv Ip Suggesting 10.255.0.2
************
*IPTables FW *
************
|
 
Old 07-28-2003, 03:16 AM   #2
djlightman
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
ADD TO .. clicked submit before I was DONE !!! DOH


Picking it up from the Firewall

********
IPTABLES*
********
|
|
*******
*HUB *
*******
| | |
| | ----- Server 1 10.10.10.6
| ---------- Server 2 10.10.10.7
|
|
LAN
workstations 10.10.10.20-30
 
Old 07-28-2003, 03:17 AM   #3
djlightman
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
The iptables LAN interface is 10.10.10.1
 
Old 07-28-2003, 03:56 PM   #4
cyph3r7
Member
 
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Rep: Reputation: 30
ok taking what you "drew" out before you will need to nat again at the iptables firewall:

INTERNET
| Pub ip's
************
*Cisco 4700 * Running NAT
************ and Basic Access lists
| Priv Ip suggesting 10.255.0.1
|
| Priv Ip Suggesting 10.255.0.2
************
*IPTables FW *
************
|
********
IPTABLES w/ nat
|
|map Priv Ip suggesting 10.255.0.1 to Server 1 10.10.10.6
|map Priv Ip suggesting 10.255.0.2 to Server 1 10.10.10.7
|
********
|
|
*******
*HUB *
*******
| | |
| | ----- Server 1 10.10.10.6
| ---------- Server 2 10.10.10.7
|
|
LAN
workstations 10.10.10.20-30



Now my question for you is do you really need the cisco 4700? I ask because if you throw a few extra nic cards into the firewall itself you could setup a DMZ which is what I assume you want the first 2 priv ip's for. Three nics is all you need, one for wan, one for lan and one for dmz.
 
Old 07-28-2003, 09:15 PM   #5
djlightman
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Well I'd like to have the 2 levels of defence, and what I was trying to illistrate is just the ip's of the interfaces on the devices. It really doesn't matter to me what the ip's are... all I wanted to illustrate and ask is that is there anyway to set it up like this where the firewall/iptables is just passing stuff through.. My internal lan is all 10.10.10.x workstations and servers.. so what I was trying to do is let the cisco take the basic protection and then do the heavy firewalling at the iptables end just having the traffic pass though.. Is there anyway I can do that with having to NAT it again at the iptables box ? The cisco is doing some other stuff on other interfaces that I don't really want to move and honestly I trust a hardware router more than I do a box running on a hard disk.. just past experiences.. this way if the fw failed I could easily reroute on another interface of the cisco till it was bacup.. Yes it would compermise security but if the tables box is doing nat and everything I have to have a complete second machine there incase it fails.. more overhead..

Basically what I'm asking is can it be done and how? Natting twice just screems issues to me.. so the only other thing that I could do leaving the cisco box in the way is let the traffic pass through it as a "dumb" box right to the iptables/NAT and put the public ip's there. didn't really want to do that.. but is that really the only way ?

Dave
 
Old 07-29-2003, 07:04 AM   #6
cyph3r7
Member
 
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Rep: Reputation: 30
I have never run into problems double natting. Haven't done it your way but I have done it thru 2 layers of firewalls and in some proxy settings.

You dont have to justify why you want to use the cisco box, I was just curious. If you are anything like me you would use it just becuase you could.
 
Old 07-29-2003, 02:28 PM   #7
djlightman
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
hehe.... that's about it

so if I was going to double nat how would you you have any suggestions and or reccomendataions ?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables nat kernelvn Linux - Networking 5 05-03-2005 11:39 AM
IPTABLES : build NAT using IPTABLES joseph Linux - Networking 4 04-23-2004 05:08 AM
iptables and Cisco router Arnold Poindext Linux - Security 10 06-04-2003 07:33 AM
IPtables +NAT daromer Linux - Networking 1 01-07-2002 11:15 AM
Linux or Cisco 678 NAT? salathe Linux - Networking 2 10-09-2001 10:10 AM


All times are GMT -5. The time now is 04:14 PM.

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
Open Source Consulting | Domain Registration