sucker newbie needs some god-like info on iptables
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
sucker newbie needs some god-like info on iptables
hello wonderful, wonderful people!!
i've ran into a bit of a problem on Mandrake9.0 (yet again).
my iptales sems to be odd, i'mnot sure what its doing, cause iptables is something i've never even heard of untill last week.
when i run iptables -L, i get a LOAD of thigs coming up, and i don't understand anything that happens (i can post if you want). however, if i go into MCC->System->Services and click the stop button next to the iptables service entry, My samba shares become available to me, but i ose my shared network connection.
can someone please gve me a list of commands to type for ip tables taht would remve all blockages set by it on eth0, keep anything thats on it(or make it a better firewall) for /dev/modem, and still allow me t share the internet connection from my little server??
Hi, first, check my sig for a sample iptables script.
Second, iptables is not only a firewall but it also acts as a router, which is why you lose connectivity to your internal machines when iptables is stopped.
The best thing for you to do is find out where the rules for your system are located, and then edit them to open or close ports as you see fit.
Remember, drop everything, then let only what you want open to be open.....
samba uses port 138/139, so set up a rule to allow internal connections on that port..... if you allow external, then anyone on the net will be able to access files in your samba share!!!....
Post back any questions once you've looked into this....
if you do 'iptables -nvL' & 'iptables -t nat -nvL' you will get a list of the rules that are working.
If you shut down the iptables service entry, you will also be shutting down the ip_forward function, which allows packets to pass between interfaces...
echo 1 > /proc/sys/net/ipv4/ip_forward
will restore the networking but leave you without any firewalling...
This will give you a chance to investigate your rulesets and open services you want to use.
Idea: Use a nice Graphical User Interface (GUI) frontend for iptables, like Guarddog, then you only have to click a few check boxes to enable what you want.
thats better. i like idiot-proof solutions. although i LOVE to play about with CLI's, i prefer to do t once i've got the blasted thing working frst, so i can see whats gong on at the ground level.
one other thig, which MAY be related...
since i've installed internet conection sharing on my linuxbox, i can no longer access the internet directly from my linux box, i can only do this from ly laptop once its plugged into the box through the LAN. any ideas? or should i putthis in another post?
Hmm, try Guarddog first and see if that fixes any/all of your connection problems
I had problems with the default Mandrake firewall, Shorewall, but once I got my modem drivers installed and guarddog set up, all is well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.