LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-09-2004, 07:07 AM   #1
woutervdbos
LQ Newbie
 
Registered: Apr 2004
Distribution: mandrake 10 com
Posts: 3

Rep: Reputation: 0
Question Problem with internet sharing with mandrake 10 & shorewall


I have mandrake 10.0 community installed and this is the very first time ever that I used Linux as an OS. It all works fine but when I try to share my internet things go wrong. I got my internet on eth0 via cable. When I plug in the second card eth1 all sorts of problems arise. Can somebody help me with a sort of step by step guidance. First I wonder when I install a new connection with eth1 this a lan connection but then I need to give a an IP adres and a netmask what should I put in these fields? I think IP must be 192.168.0.1 and netmask is entered automatically. Then I wonder what the DNS servers must be they are now also filled in automatically or must it be blank. And must the gateway also be 192.168.0.1 and eth1 must be the gateway device right? How about the zeroconf hostname ?I left it blank.
One problem I got is that shorewall failes at the startup ...
I hope someone can help me cause Im desperate... I had it working a little bit once , my laptop found an IP adres and I could ping that but no internet.. thanx already I hope it s clear what I am trying to say
 
Old 04-09-2004, 09:41 AM   #2
maddog
Member
 
Registered: Dec 2001
Location: Tasmania
Distribution: mandrake 10 community
Posts: 42

Rep: Reputation: 15
hi I had some trouble initially with mandrake 10 and internet connection sharing. But now it is all working fine. If shorewall is failing on start up then it could be that some of its settings are wrong.
I will go find the info that helped me and post back here.
Even though my setup is probably different to yours it should help you.
 
Old 04-09-2004, 10:33 AM   #3
maddog
Member
 
Registered: Dec 2001
Location: Tasmania
Distribution: mandrake 10 community
Posts: 42

Rep: Reputation: 15
This is what worked for me, it may not necessarily work for you but its worth a shot.

"Open the file /etc/shorewall/policy using your favorite editor (VI, emacs, kwrite...)
at the bottom you will see some lines like this:

loc net ACCEPT
fw net ACCEPT
net all DROP info
all all REJECT info



add a new line between the line loc net ACCEPT and fw net ACCEPT that says masq net ACCEPT so that the lines now read as follows:

loc net ACCEPT
masq net ACCEPT
fw net ACCEPT
net all DROP info
all all REJECT info

P.S.
The spaces betwwen each object on each line are a single Tab and NOT spaces. This must be as the file may not be parsed correctly if you do not have a single Tab in between each object on a line.


David
aka tekjunky"

My configuration is as follows
I connect to the internet via a usb ISDN TA, the system with the ISDN modem is setup as the default gateway for the local network. All machines get there ip from that system via its eth0 interface via dhcp, eth0 has a static ip and the usb modem gets its ip automatically assigned. Initially shorewall was failing to start and from what I could gather is that with out shorewall running correctly internet sharing wont work. Doing the above edit fixed shorewall and so far I have had no more problems.
 
Old 04-09-2004, 07:00 PM   #4
woutervdbos
LQ Newbie
 
Registered: Apr 2004
Distribution: mandrake 10 com
Posts: 3

Original Poster
Rep: Reputation: 0
This still didn't work for me...
some questions: the gateway is the device not connected to the internet but to the other computer right?
dhcpd doesn't seem to work either...
this is the fault in my shorewall :
Validating policy file
error : undefined zone loc
/etc/init.d/shorwall: line 89: 325 Terminated /sbin/shorewall check

don't know what it means...anybody ??

thanks
 
Old 04-09-2004, 08:05 PM   #5
maddog
Member
 
Registered: Dec 2001
Location: Tasmania
Distribution: mandrake 10 community
Posts: 42

Rep: Reputation: 15
The gateway is the system that has internet access. Did you setup connection sharing using the Wizard in control centre? As for the shorewall error and im no expert on this, but it looks like it needs to be edited. I was getting errors like that initially.
this is what my shorewall policy file looks like

loc net ACCEPT
fw net ACCEPT
net all DROP info
all all REJECT info

Hopefully some one with more knowledge of this will post here. I manged to get it working but I find it dificult trying to explain exactly how i did it.
But here goes, I used webmin, open konqueror and type this url in the address bar https://127.0.0.1:10000 hit enter it will ask for a login, lgin in as root. you should then be presented with a nice interface with sevral tabs along the top you will be looking for networking click on it, next you will be looking for shorewall click on it. Now you can edit your firewall rules and check to see if the changes have fixed the problem with the firewall.
It was trial and error for me and its probably not the best solution but it worked for me, im still reading up on firewall setup.
 
Old 04-09-2004, 08:51 PM   #6
woutervdbos
LQ Newbie
 
Registered: Apr 2004
Distribution: mandrake 10 com
Posts: 3

Original Poster
Rep: Reputation: 0
Angry Thanks

Thanks for the tip I m still trying. The thing is I still dont know if my network card is installed properly. I deleted the connection to do it all over again. Do I first have to make a new connection and then use internet sharing?? And furthermore when I do a manual install of a new connection can somebody give me the right stuff to fill in. How about the DNS adresses take the ones it gives automatically or none and what about gateway adrs??
I hope it will work soon

Wouter
 
Old 04-10-2004, 11:36 PM   #7
maddog
Member
 
Registered: Dec 2001
Location: Tasmania
Distribution: mandrake 10 community
Posts: 42

Rep: Reputation: 15
What is your particular setup? I take it you connect to the internet via eth0 (cable?) or some other broadband technology. And you want too share connection with other computers via eth1. Is this correct?
 
Old 04-12-2004, 12:24 AM   #8
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Rep: Reputation: 15
I have had some bad expierences with Shorewall too. There seems to go something wrong in the configuration in both Mdk 9.2 and Mdk 10.
After a few days it suddenly blocked all my outbound traffic, and so it disabled my dhcp-requests to be executed.
I have removed the whole thing and downloaded a better firewall.
Take a look at this site: http://projectfiles.com/firewall/ for a shell-script.
The instructions are very clear, and I got it working in 15 minutes.
You should give this one a try...

Good luck

Schmurff
 
Old 04-12-2004, 08:22 PM   #9
cabinetcrafter
Member
 
Registered: Mar 2004
Location: midwest
Distribution: Mandriva 2007
Posts: 83

Rep: Reputation: 15
shorewall

I spent several evenings trying to get shorewall to work in drake 10, all to no avail. Finally i uninstalled shorewall and downloaded shorewall 2.0b and installed it and have it up and running just like it should be. There is something weird going on in the Mandrake version of shorewall I think.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems -Internet sharing Mandrake & XP Hamid_Son Linux - Networking 0 06-16-2004 04:43 AM
Shorewall, Samba, XP, Internet Sharing - MDK10 dickohead Mandriva 9 06-15-2004 02:32 AM
Shorewall Internet Sharing, HELP! timmywo Linux - Networking 2 12-26-2003 12:18 PM
Internet Sharing & DHCP problem? Help! hakanicduygu Linux - Networking 4 01-25-2003 01:18 PM
MDK 9.0, Internet Connection Sharing and Shorewall... deputyjim Linux - Networking 1 11-21-2002 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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