LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-24-2005, 09:11 PM   #1
Trio3b
Member
 
Registered: Oct 2004
Location: Texas, USA
Distribution: MDV 2008.1, PCLinuxOS,
Posts: 315

Rep: Reputation: 30
internet sharing


I now have ssh connection thru Konqueror between the following PCs, but no 'net sharing.

PC1 Mandriva 2005LE
eth0 is NIC --> DSL modem configured as DHCP dynamic during setup
eth1 is NIC -->hub --> PC2 confgured as static (192.168.10.1)

PC2 Mandrake 10.0
eth0 is NIC -->hub-->PC1 configured as static (192.168.10.2)

Have tried internet sharing with MCC on PC1, but the Mandriva documentation does not help by saying "fill out these boxes with info from your administrator".

I have set these up using GUI and have heard it is not good to mix with CL. If I alter the static network to DHCP for internet sharing I lose the ssh connection.

Any help appreciated
Thanks
 
Old 10-24-2005, 11:01 PM   #2
GaMeS
Member
 
Registered: Jan 2005
Location: France / Bretagne
Distribution: Debian / Gentoo
Posts: 71

Rep: Reputation: 15
hi,

to sharing DSL you must active routing.

Code:
echo 1 >  /proc/sys/net/ipv4/ip_forward
the routing is the relation on eth0 and eth1

after on your PC2, setup the gateway and put => 192.168.10.1
setup DNS primary and secondary of your ISP in the Configuration IP on PC2

(excuse for my bad english :$ )
 
Old 10-25-2005, 12:46 AM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
Have tried internet sharing with MCC on PC1, but the Mandriva documentation does not help by saying "fill out these boxes with info from your administrator".
So you're trying to run the internet connection sharing wizard right? What information is it asking for that you don't know?

Quote:
I have set these up using GUI and have heard it is not good to mix with CL
What have you setup using GUI? The static IP addresses? If so then there's nothing wrong with using GUI config tools. However the internet connection sharing wizard is another matter - it will probably change your network to use 192.168.1.x addresses. However unless you have a particular attachment to the 192.168.10.x addresses this is fine and shouldn't matter.

Quote:
If I alter the static network to DHCP for internet sharing I lose the ssh connection.
Then you aren't setting up DHCP right, this is why its easier to use the internet connection sharing wizard because it does all this for you.
 
Old 10-25-2005, 10:57 PM   #4
Trio3b
Member
 
Registered: Oct 2004
Location: Texas, USA
Distribution: MDV 2008.1, PCLinuxOS,
Posts: 315

Original Poster
Rep: Reputation: 30
'net sharing

I used the wizards for both the LAN connection ( dynamic) to DSL modem and on each PC for each NIC (static) to the hub.
I used 192.168.10.x because when I used 192.168.0or1.x, I lost my internet connection, so I went back.

I also used the wizard for the internet sharing in MCC but must have inserted incorrect info. Wizard asks for interface connected to net then recommends ppp+ but offers to put either ppp+ or my eth0. I have tried both. Later it asks for interface to internal network, so I insert eth1, then it gives warning about eth1 already configured, but did it anyway. Then I lose the ssh connection until I reconfig everything back.

Any help appreciated.
Thanks
 
Old 10-25-2005, 11:34 PM   #5
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
To setup internet connection sharing you have to setup shorewall. Show what's in your /etc/shorewall/policy, /etc/shorewall/interfaces, /etc/shorewall/zones and /etc/shorewall/masq files (you can strip out the commented instructions that take up most of those files).
 
Old 10-27-2005, 08:19 PM   #6
Trio3b
Member
 
Registered: Oct 2004
Location: Texas, USA
Distribution: MDV 2008.1, PCLinuxOS,
Posts: 315

Original Poster
Rep: Reputation: 30
I sharing

Thanks for the help. At this point my internet sharing is now working, but am confused as to why.
Played around with iptables, routing , etc for a while, but I got the urge to look into firewall.
MCC has a question under firewall: Which services would you like the internet to connect to?

And a checkbox for "everything" (no firewall). You would think that this setting would allow for open and free networking and sharing, but apparently not. As soon as I unchecked this, and checked DNS, webserver and echo request, I had internet sharing with my PC2.

Can someone please explain how this firewall checkbox list works? MCC documentation doesn't cut it.

Also, under MCC security, I could swear there were permissions , user, and firewall settings. Now I only have firewall. Is this MDV 2005LE defaults, and am I thinking of MDK 10.0?

Thanks
 
Old 10-28-2005, 01:09 AM   #7
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
The firewall configuration system (shorewall) has a lot to do with the internet sharing - pretty much all the settings for it are in shorewall so it makes a kind of sense that if you disable the firewall it doesn't work. It also makes sense from a security POV. Now that it's working you should disable web and dns in shorewall because its only for incoming - something which you don't want unless you're running a web server.

If for some reason you want to browse the net without any firewall you should still keep shorewall enabled. Just edit the /etc/shorewall/policy file to ACCEPT all all. But be aware that this is a very BAD IDEA.
 
Old 10-29-2005, 07:57 PM   #8
Trio3b
Member
 
Registered: Oct 2004
Location: Texas, USA
Distribution: MDV 2008.1, PCLinuxOS,
Posts: 315

Original Poster
Rep: Reputation: 30
shorewall

I guess if you put it that way then it makes sense that if internet sharing is controlled by shorewall and you shut it off then you won't have sharing, but that is not how the MCC appears to newbs. It says if you want the PC to connect to everything, then check the box to initiate no firewall. That seems to be poorly worded. Any good tutorials on shorewall?

thanks
 
Old 10-30-2005, 02:42 AM   #9
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
but that is not how the MCC appears to newbs. It says if you want the PC to connect to everything, then check the box to initiate no firewall. That seems to be poorly worded
Agreed - their firewall interface is crap. Its confusing (the 'everything' thing) and it makes it hard to impossible to do anything beyond the most basic configuration of the firewall.

Quote:
Any good tutorials on shorewall?
http://www.shorewall.net/Documentation_Index.html esp. see the Quickstart Howtos.
 
  


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
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 02:22 PM
internet sharing LinuxRam Linux - Networking 8 09-09-2004 08:52 AM
internet sharing trace1918 Linux - Networking 3 11-18-2003 02:04 PM
File sharing and internet sharing mullet Linux - Networking 1 10-14-2003 01:30 PM
Internet sharing from OS X to RH 7.3 ZeratulsAvenger Linux - Networking 3 07-22-2003 08:03 PM

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

All times are GMT -5. The time now is 01:58 PM.

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