LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2003, 05:29 PM   #1
ironChimp
Member
 
Registered: Feb 2003
Location: Scotland ( for some obscure reason)
Distribution: Mandrake 9, RH8, Suse 7.3
Posts: 32

Rep: Reputation: 15
Unhappy 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??

PLease?

Ta!
 
Old 02-26-2003, 06:33 PM   #2
mychl
Member
 
Registered: Jul 2001
Location: Earth
Posts: 164

Rep: Reputation: 30
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....

HTH, good luck
 
Old 02-27-2003, 06:56 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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.
 
Old 02-27-2003, 08:42 AM   #4
kater
Member
 
Registered: Feb 2003
Location: Switzerland, Berne
Distribution: Slackware 9.0
Posts: 186

Rep: Reputation: 30
Read the firewall-HOWTO:

http://bitblit.net/~xbox/thinknerd/a...Firewall-HOWTO
 
Old 02-27-2003, 05:44 PM   #5
ironChimp
Member
 
Registered: Feb 2003
Location: Scotland ( for some obscure reason)
Distribution: Mandrake 9, RH8, Suse 7.3
Posts: 32

Original Poster
Rep: Reputation: 15
almost everything that all you wonderful guys have saud makes little sense to me. If i use mychls script, and edit it slightly, will that work?
 
Old 02-27-2003, 05:50 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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.
 
Old 02-27-2003, 05:59 PM   #7
ironChimp
Member
 
Registered: Feb 2003
Location: Scotland ( for some obscure reason)
Distribution: Mandrake 9, RH8, Suse 7.3
Posts: 32

Original Poster
Rep: Reputation: 15
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?
 
Old 02-27-2003, 06:05 PM   #8
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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.
 
Old 02-28-2003, 01:14 AM   #9
jburford
Member
 
Registered: Sep 2002
Distribution: Mandrake 10, IPCOP 1.4, SME Server 6, EvilEntity
Posts: 106

Rep: Reputation: 15
This may be (probably is!) a stupid question, but does guarddog support masquerading for routing, or is it just a local firewall?

Jim
 
Old 02-28-2003, 04:07 AM   #10
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Masquerading is a firewall function too.

Guarddog does this.

Also you can look at Firestarter. It has some very good instructions/help screens too.
 
  


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
newbie info pperk97 Linux - Newbie 7 10-23-2004 05:35 PM
<sucker> how do i get files with CVS? <sucker> funkymunky Linux - General 2 02-21-2004 12:12 AM
iptables and stdout... god, I hate this! TheIrish Linux - Security 5 11-17-2003 10:11 AM
Cant get this sucker to boot! ferreter Linux - General 5 09-07-2003 01:48 AM
Memory sucker sallas Linux - Newbie 2 08-24-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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