LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-09-2002, 06:31 PM   #1
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Rep: Reputation: 15
ip masquerading


I've been reading the HOW-TO's on iptables and ip masquerading.

I have a couple of things I don't understand. In the scripts they specify an internal connection and an external connection.
specifically:
EXTIF="eth0"
INTIF="eth1"

My network device is eth0, which is my network card. I connect to the internet and my internal network with this device through my linksys router.
Where does eth1 come from? Is this just a "virtual" device?

Lets say I make the modifications to the sample script. Do I then rename this script rc.firewall?
How do I run this script a) manually or b) automatically when the system boots up?

Thanks
 
Old 08-09-2002, 08:41 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Your Linksys router is acts as your firewall and does you masquerading to the external network (Internet) You don't need to setup iptables if it is not being used as a gateway or firewall.
 
Old 08-10-2002, 10:58 PM   #3
Ionized
Member
 
Registered: Jul 2002
Location: Chicago Suburbs
Distribution: Slackware 8.0
Posts: 51

Rep: Reputation: 15
To run the script, just make sure that
#!/bin/sh
is at the top of the file, and then run it as an executable. To have it run at startup, well I don't know how Mandrake does it, but have one or your rc.* files call it. On slack I have /etc/rc.d/rc.local call rc.firewall.

eth0 and eth1 are names of individual ethernet cards. eth1 is not virtual. It's used if you have 2 network cards in your computer to make it a hub/router/firewall, whatever. Masquerading only applies to you if you have 2 network cards on the computer.
 
Old 08-12-2002, 05:08 PM   #4
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Original Poster
Rep: Reputation: 15
I seem to be making this more complicated than it has to be.
I'm using a linksys router set to gateway. I have port forwarding and all that set on the router.
So from what I'm reading I don't need to be going through all this.

Am I correct in thinking that all I need to do is setup my linux box to listen to port 21?
If so, do I set my host domain or primary domain to the ftp.xxxxxx.com?
 
Old 08-13-2002, 11:37 AM   #5
Ionized
Member
 
Registered: Jul 2002
Location: Chicago Suburbs
Distribution: Slackware 8.0
Posts: 51

Rep: Reputation: 15
Re: ip masquerading

Quote:
Originally posted by artman62
My network device is eth0, which is my network card. I connect to the internet and my internal network with this device through my linksys router.
So there's only 1 network card on your computer and it goes through an external router. You haveno need for port forwarding in the linux box. That's only needed if the linux machine is the router/firewall itself instead of the external one you have. You shouldn't need to do any routing configuration on your linux box.
 
Old 08-13-2002, 07:57 PM   #6
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Original Poster
Rep: Reputation: 15
Just goes to show you, sometimes the best answer is the simplest.


Thanks for your help
 
  


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
IP Masquerading mugwump84 Linux - Newbie 5 05-03-2005 09:30 AM
IP Masquerading ? emailssent Linux - Networking 1 10-07-2004 10:49 PM
help ip masquerading campusloop Linux - Networking 1 05-20-2004 12:37 PM
IP masquerading. somebody help me! Johnsernickle Linux - Networking 4 10-22-2002 06:57 PM
IP Masquerading kwigibo Linux - Networking 3 09-21-2002 07:46 PM

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

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