LinuxQuestions.org
Visit Jeremy's Blog.
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 03-09-2004, 10:34 AM   #1
Kaashar
LQ Newbie
 
Registered: Dec 2003
Posts: 11

Rep: Reputation: 0
Double NAT Problems...


Here's the problem I have:

Westell 890 DSL router, can't make the beastie behave as a bridge, so it's currently setup at a 192.10.10.xxx NAT router.

Built a RH9 box to do iptables forwarding w/ Arno's script (I like it) and two network cards.

What problems will I have (if any) if I use both. Replacing the westell with a DSL bridge is an option, but I'd rather not replace the Westell if I don't have to. I simply don't care for it's lack of options on port forwarding/blocking, etc so I want to use the Linux box as my firewall. I've read that double NAT is "a bad thing" but why? There's going to be light traffice on the box, but I need to know if this is going to cause me more problems than it's worth.

Thanks,

Kaash
 
Old 03-10-2004, 03:43 PM   #2
Technonotice
Member
 
Registered: Mar 2004
Location: UK
Distribution: Debian Unstable
Posts: 58

Rep: Reputation: 15
I haven't had any trouble when I've done this before... in fact I run a double NAT in my workshop through a workstation running ethereal and etherape (etc) so I can monitor internet-bound traffic easily. Very nice when I'm fixing Windows PCs... ;-)
 
Old 03-11-2004, 01:31 PM   #3
Kaashar
LQ Newbie
 
Registered: Dec 2003
Posts: 11

Original Poster
Rep: Reputation: 0
I bit the bullet and did it. You're right works fine in my test environment (I built the thing behind an existing RH box).

Guess I'll impliment it since it works, I may rebuild the mess later using one of the CD distros, would make an interesting security system.
 
Old 03-11-2004, 04:52 PM   #4
Technonotice
Member
 
Registered: Mar 2004
Location: UK
Distribution: Debian Unstable
Posts: 58

Rep: Reputation: 15
Hehe... good to hear

The useful thing for me is being able to carefully monitor a PC (since they usually come into the workshop loaded to the hilt with spyware/viruses) and if it begins talking a bit too much on the internet, I have a couple shell scripts handy to cut off access at the touch of a button
 
Old 03-11-2004, 07:24 PM   #5
Kaashar
LQ Newbie
 
Registered: Dec 2003
Posts: 11

Original Poster
Rep: Reputation: 0
How are you monitoring the traffice by the by?

I've been contemplating setting something up (MRTG is good, but I want something more realtime) so I could monitor traffice like that.

Grated, my list of things to look at just keeps getting bigger....I've wanted for years to set up some bandwidth limiting stuff for iptables, etc.
 
Old 03-11-2004, 07:51 PM   #6
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
if you're interested in building bridges / routers / gateways / whatever you kids call them these days, try OpenBSD. Their pf syntax is much easier on the eyes and brain than iptables syntax, which is just a command as opposed to a parsed, human-readable rule set. For instance, if I want to pass connections in on port 6346, in iptables I would have something similar the following in a script somewhere:

Code:
$IPT -A INPUT -s 0/0 -d 0/0 -p tcp --dport 6346 -j ACCEPT
huh? If I'm not the one who wrote it, it's not immediately obvious to me what it does, at all. Here's the pf version:

Code:
pass in on tun0 proto tcp from any to any port 6346
Much easier to read. Checkitout.

B.
 
Old 03-12-2004, 10:54 AM   #7
Technonotice
Member
 
Registered: Mar 2004
Location: UK
Distribution: Debian Unstable
Posts: 58

Rep: Reputation: 15
Thanks german - looks very nice...

*looks around for a "victim" to install OpenBSD on...*

I really like using Etherape from http://etherape.sourceforge.net/ - lovely graphical view of the network and you can get an idea of quantity and protocols. If you need to watch in very specific detail, try out iptraf at http://iptraf.seul.org/

Also, if you need it, Ethereal at http://www.ethereal.com/ which is a very powerful tool for capturing and logging packets.

I like to run Etherape if I'm not immediately at my machine as you soon know if something's gone wrong

Just need the flashing lights and red telephone
 
  


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
Double the desktop, not double the fun! bizshop SUSE / openSUSE 3 08-26-2005 12:22 PM
double NAT peer to peer wifi crashing me3 Linux - Wireless Networking 15 01-26-2005 11:21 AM
Double Trouble: Music cd's not loading and video device problems. ObLiViOuS1886 Slackware - Installation 10 05-10-2004 09:51 PM
Double NAT, IPtables and bridging SWAT Linux - Newbie 1 02-16-2004 04:43 PM
ProFTPd and double NAT...possible? tisource Linux - Networking 5 02-14-2003 01:20 PM

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

All times are GMT -5. The time now is 01:45 PM.

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