LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-05-2004, 02:33 AM   #1
Mike5555
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Rep: Reputation: 0
Mandrake 10 + internet sharing


I've got 2 computers, one with Windows XP and one with Mandrake 10. I've got ADSL connection on computer with Mandrake. I've configured connection sharing by mandrake control center. I can't run internet on computer with Windows XP. When Mandrake starts there is a problem with shorewall (there's an error). Can anybody tell me what is it?





Last edited by Mike5555; 05-05-2004 at 02:34 AM.
 
Old 05-05-2004, 10:57 AM   #2
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Rep: Reputation: 30
A simple google for "shorewall" will reveal on top of the list:

http://www.shorewall.net/

Looks like a firewall...
 
Old 05-05-2004, 11:56 AM   #3
jag2000
Member
 
Registered: Sep 2003
Location: Ohio
Distribution: Ubuntu 12.04
Posts: 314
Blog Entries: 2

Rep: Reputation: 31
get a linksys router.. model # befsr41
makes life easier
 
Old 05-05-2004, 01:11 PM   #4
Mike5555
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Original Poster
Rep: Reputation: 0
I know what is shorewall, but i was asking about what to do with it! It still doesn't work. I've tried everything! Please HELP?

I've found where's the problem. My ADSL connection conflicts with shorewall. It can't run adsl, when shorewall is running, and shorewall can't run, when adsl's running. But, i still don't know what it is.

Last edited by Mike5555; 05-05-2004 at 01:55 PM.
 
Old 05-05-2004, 05:11 PM   #5
pgmer6809
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10.0
Posts: 18

Rep: Reputation: 0
Shorewall and Mandrake

First check the thread I started on this topic. At the end of it you will see a couple of long messages I posted with my results.

In brief shorewall is a way of setting up the iptables to allow IP traffic through your linux box to and from the internet and windows.

The shorewall that ships with Mandrake 10.0 does not work. Why I don't know. It is version 1.4.7 or somesuch.

Here is a 50,000 ft view of how to fix this. Sorry I don't have expertise or time to give more detailed step by step.

Go to the shorewall site, and download version 2.0.1. (there is a mandrake 10 version of the package there.)
Also go to the shorewall doc page, and download the example files they provide; they are very nice and easy to follow.
(You need internet access from somewhere to do this. Work? a friend's house? another dial up machine? whatever).
Save the downloaded files in some working directory.

Now unplug your cable from the internet. You do not want to be on the net without a firewall running.
Now in the mandrake gui you stop the shorewall service.
You also use the mandrake pack mgr gui to un-install the 1.4.7 version of shorewall.
Now you go to the command line.
You unzip and untar the shorewall2.0.1 file.
You install the resulting rpm from the command line with an:
r pm -Uvh --nodeps <yourfilenamehere.rpm> cmd.
The --nodeps is very important and the reason you use the cmd line rather than the mandrake gui. (see my thread for why it is so.)

If the rpm install works, then you should see shorewall2.0 show up in the mdk pkg mgr gui.

Now you use vi (or your favorite text editor) to edit the shorewall config files as per the examples. I just make backup copies of the example files and then edit the example files directly.
You need to edit (if memory serves) interfaces, policies, masq, rules and maybe one other.

Now you can use mandrake gui to start the shorewall service again.
(The files you just edited have to be in the correct directory, but I think that the shorewall examples explain this.)
If you have done the editing of the config files properly shorewall will start, and you will not get any iptables errors. If your rules are correct you will now be protected.

You now reconnect the cable to the internet.

Once I had done all this, (see my thread of around may 3rd), my linux firewall box could talk on the net.

Now i need to set up w98 boxes to use the linux box as a gateway.
Using the Control panel, I set the gateway to the IP of the linux box interface that was facing the windows lan, and I also set the dns servers in the windows machines to the dns servers my ISP provides.
(Note if you are running a firewall package on the windows machines such as McAffee, you prob want to stop this package. You should not need it with shorewall protecting you. I wouldl leave any antivirus s/w running on the windows machines though.)

Now my windows boxes can browse the net, but other boxes on the net cannot see them, thanks to the firewall in the linux box.

Hope this helps.

pgmer6809
 
Old 05-06-2004, 02:26 AM   #6
Mike5555
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Can anybody tell me where are the docs and rpm version for mandrake 10? Because I haven't found them! What files i have to edit? Anybody knows any other method to share internet connection? Because I'm

Last edited by Mike5555; 05-06-2004 at 02:38 AM.
 
Old 05-06-2004, 08:57 AM   #7
jag2000
Member
 
Registered: Sep 2003
Location: Ohio
Distribution: Ubuntu 12.04
Posts: 314
Blog Entries: 2

Rep: Reputation: 31
router.. .. linksys.. befsr41 model #
 
Old 05-06-2004, 11:03 AM   #8
pgmer6809
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10.0
Posts: 18

Rep: Reputation: 0
Mike5555
Have you visited the shorewall site?
It is really quite well organized if you know what to look for.
Start with the Documentation link in the LH pane.
Then choose the quick start, the examples, etc that correspond to your set up.
Then go to the download mirrors and get the rpm and the doc file.
As with most things in Linux you cannot just click a button and have it happen (annoying but there it is.) You have to read up a bit, get a minimal amount of understanding and do some small amount of work. Fortunately the shorewall author has clearly explained what you need to do, so once you get on the right track it is clear sailing.
Here are some links I found on the shorewall site, in less than 3 mins of looking. But I urge you to visit the site itself, and navigate through the frames, since you will prob spot something of interest to you as you do so.
-----------------------------------
Shorewall site:
http://www.shorewall.net/
Shorewall Documentation:
http://www.shorewall.net/Documentation_Index.html

Start of shorewall page.
+++++++++ Here is a quote from one of the doc pages +++++++++++
The configuration files for Shorewall are contained in the directory /etc/shorewall -- for
simple setups, you will only need to deal with a few of these as described in this guide.

Tip After you have installed Shorewall, download the two-interface sample, un-tar it (tar - zxvf two-interfaces.tgz) and and copy the files to /etc/shorewall (these files will replace files with the same name).

As each file is introduced, I suggest that you look through the actual file on your system --
each file contains detailed configuration instructions and default entries.
+++++++++++++ end quote +++++++++
Download Mirror/directory:
http://www.shorewall.net/pub/shorewa...SION_IS_2.0.1/
Filenames to get on mirror
shorewall-2.0.1-1.noarch.rpm

pgmer6809
shorewall-docs-html-2.0.1.tgz
 
Old 05-07-2004, 02:15 PM   #9
Mike5555
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Original Poster
Rep: Reputation: 0
shorewall works :->, but ethernet doesn't :-<
 
Old 05-07-2004, 03:46 PM   #10
pgmer6809
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10.0
Posts: 18

Rep: Reputation: 0
Mandrake and ethernet

UGH!
Sorry about that. I don't really have the expertise to help you.
Try posting another thread with a topic relating only to ethernet and mandrake.
IT will help if you post at the same time a few details such as:
1) brand of ethernet card you are using.
2) result of modprobe cmd (this will show if you are using the correct driver)
3) output of the dmesg cmd (this gives your startup results at boot time)
4) Whether you are using dhcp or static IP.
5) output of ifconfig and netconfig cmds.
6) output of lspci -v cmd (if your eth card is a PCI card)

pgmer6809
PS if ethernet does not work, how do you know that shorewall does?
 
Old 05-08-2004, 04:32 AM   #11
Mike5555
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Original Poster
Rep: Reputation: 0
My shorewall worked for ten minutes, till i've restarted computer!

Informations:
Computer with mandrake:
-ip: 192.168.1.22
-ADSL connection (I want to share it)
-ethernet card

Computer with Windows XP:
-ip: 192.168.1.11
-ethernet card

From computer with Windows XP I can't see computer with Mandrake, and from computer with Mandrake can't see computer withWindows XP.

But pings are going from and to this computers!
 
Old 05-17-2004, 07:21 PM   #12
CeltiKaos
LQ Newbie
 
Registered: May 2004
Location: S Wales, UK
Posts: 3

Rep: Reputation: 0
Mandrake 10 + internet sharing

Hi Mike5555,

That sounds to me more like a Samba problem than Internet. If Windows cannot see the MDK box and vice versa, is Samba set-up properly? Are the host names and Workgroup (in Windows) the same on both machines?

On another tack, a friend has a machine newly set-up with MDK 10, with two network cards, eth0 and eth1. How do we know which is connected to his Cablemodem and which to his other PC? He's getting nowhere fast with the Internet access at all much less sharing it. I have a router on mine so it's not an issue for me.

Any suggestions appreciated.

Kind regards,

Julian
 
Old 05-18-2004, 03:24 AM   #13
Mike5555
LQ Newbie
 
Registered: Apr 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Now, Windows sees Linux and Linux sees Windows, but internet sharing doesn't work!
 
Old 05-18-2004, 04:00 AM   #14
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
there is an iptables script (NAT SNAT firewall) creator at www.iptables-script.dk
it can help u to share internet connection.
 
  


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
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 02:22 PM
Internet Sharing For mandrake 10 electron Linux - Networking 5 09-07-2004 01:18 AM
internet sharing in mandrake 9.1 and xp durden2.0 Linux - Networking 1 08-08-2003 11:19 AM
Mandrake 9.0 sharing the internet from XP Dodj Linux - Networking 6 05-19-2003 07:32 PM
Mandrake 8 Internet Connection Sharing advantis Linux - Networking 0 06-26-2001 09:13 PM


All times are GMT -5. The time now is 02:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration