Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.