Internet Connection Sharing

Hi Guys,

I have two SUSE 11 computers, one with a 56k modem (installed and working)and Im having a hard time sharing it with the other SUSE 11 computer. I was wondering where a how to, or if somebody could let me know how.

The computer with the modem is also on vista, and when on vista, it has no problem sharing it with the other SUSE 11 computer.

any help is greatly appreciated.

This may help
ICS - openSUSE

That reference is a bit cryptic. There’s bit more here including a bunch of screenshots:
openSUSE ICS: Internet Connection Sharing (Linux IP Masquerading) with Suse or Windows Servers

hi guys

none of those things are working.

both machines ping each other. everything seems as it should work. but its almost like my modem isnt “shared” (sorry for the obvious windowsness of me)

firewalls have been disabled on both to make it a tad easier (and one less thing to worry about)

thanks again

AFAIK it’s not your “modem”, but your internet connection that should be shared. Anyway, you have to make sure your modemless PC is configured so as to have the “network gateway” set to the IP of the PC with the modem. As a consequence, you have to use static IPs.
Cheerz!

alright,

I think im missing something…

my client (linux) can access my windows server (same machine as the linux server) but cannot access it when the server is in linux.

the IP’s are the same for the linux/windows server, as is netmask, domain and hostname. I am using static IP’s and the firewalls are down for both machines in linux, however I do not need the firewall down for my client when the server is on windows. both machines can ping each other, and the gateway points to the server (192.168.0.1). is there a software I have to add or no? im uploading screenshots of my server and client PC when I go through the Network Devices YAST config

thanks for all the help so far.

The openSUSE server must have the firewall up for IP masquerading to work, did you read this segment of the referenced tutorial: openSUSE server?

http://www.yorkdigitalsolutions.com/snapshot1.jpg
http://www.yorkdigitalsolutions.com/snapshot2.jpg
http://www.yorkdigitalsolutions.com/snapshot3.jpg
http://www.yorkdigitalsolutions.com/snapshot4.jpg
http://www.yorkdigitalsolutions.com/snapshot5.jpg
http://www.yorkdigitalsolutions.com/snapshot6.jpg
http://www.yorkdigitalsolutions.com/snapshot7.jpg
http://www.yorkdigitalsolutions.com/snapshot8.jpg
http://www.yorkdigitalsolutions.com/snapshot9.jpg
http://www.yorkdigitalsolutions.com/snapshot10.jpg
http://www.yorkdigitalsolutions.com/snapshot11.jpg
http://www.yorkdigitalsolutions.com/snapshot12.jpg
http://www.yorkdigitalsolutions.com/snapshot13.jpg
http://www.yorkdigitalsolutions.com/snapshot14.jpg
http://www.yorkdigitalsolutions.com/snapshot15.jpg

these are the snapshots of my firewall config and network config for the conputer WITH modem

Looking good for the server.
Four questions for you:

  1. What do you have for the gateway in the network settings for the client?
  2. What do you get on the client when you enter this command in a console:
cat /etc.resolv.conf
  1. What do you get on the server when you enter this command in a console:
cat /etc.resolv.conf
  1. Do you have a fixed IP on the client and if so what is it?

nothing comes up when i run that it says no such file or directory

for the setup on the client, here goes

http://www.yorkdigitalsolutions.com/Client/snapshot1.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot2.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot3.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot4.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot5.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot6.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot7.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot8.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot9.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot10.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot11.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot12.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot13.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot14.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot15.jpg

http://www.yorkdigitalsolutions.com/Client/snapshot16.jpg

On Sat November 15 2008 05:46 pm, jonyork wrote:

>
> nothing comes up when i run that it says no such file or directory
>
Jonyork;

Try cat /etc/resolv.conf


P. V.
Is this on the test?

Thanks for the pictures. The Name Resolvers as in this pic for the client are wrong:
http://www.yorkdigitalsolutions.com/Client/snapshot6.jpg

Please answer both the questions that I asked in post number #9 of this series/thread.

here is what I get when I do cat /etc/resolv.conf

server

BEGIN INFO

Modified_by: pppd

Backup: /etc/resolv.conf.saved.by.pppd.modem0

Process: pppd

Process_id: 4166

Script: /etc/ppp/ip-up

Saveto:

Info: This is a temporary resolv.conf created by service pppd.

The previous file has been saved and will be restored later.

If you don’t like your resolv.conf to be changed, you

can set MODIFY_{RESOLV,NAMED}_CONF_DYNAMICALLY=no. This

variables are placed in /etc/sysconfig/network/config.

You can also configure service pppd not to modify it.

If you do not want the pppd to change your nameserver

settings set MODIFYDNS=no in the config file for

this provider in /etc/sysconfig/network/providers/

and ensure that the option usepeerdns is not set

in /etc/ppp/options.

END INFO

search site

nameserver 209.115.142.9
nameserver 209.115.142.132

On Client

BEGIN INFO

END INFO

nameserver 192.168.0.1
search workgroup

Hope this helps…

as for my wrong nameserver, what should they be?

The segment entitled openSUSE Client shows pics of what to do with the IP addresses that you have turned up on the server; viz 209.115.142.9 and 209.115.142.132. Use them on the client in the manner of this screenshot: http://www.swerdna.net.au/ics/ics11.jpg
Also remember to put 192.168.0.1 under the routing Tab for the client.

hi swerdna

i’m running suse 11 as samba fileserver for 10 windoze pcs.

eth1 = LAN connection = 192.068.0.2 = FILESERVER (hostname)
eth0 = Cable internet = (no IP since it is bonded)

cat /etc/resolv.conf

generated by NetworkManager, do not edit!

nameserver 202.88.130.67
nameserver 202.88.130.15
nameserver 202.88.130.5

how do i go about sharing this connection with the rest of my network?

If you’re trying to implement Internet Connection Sharing, you need two NICs, one facing the internet, the other facing the LAN comprised of the coputers you are sharing with. So you’d need to un-bond the two NICs and then use this tutorial:
openSUSE ICS: Internet Connection Sharing (Linux IP Masquerading) with Suse or Windows Servers

Yes I tried your tutorial without unbonding the 1st NIC (cable internet). It doesn’t work. If i unbond the NIC, my internet wont work. what do i do? catch 22!

I setup my LAN using network manger checked. If I check ifup will i lose the samba settings? i.e will my LAN crash?

ifup/networkmanager doesn’t influence Samba. You can set the nic for the LAN to have fixed IP appropriate for the LAN with ifup.

I’ve done everything as in the tutorial.
The only trouble is the moment i change to ifup my internet connection stopps working.
when i change it back to network manager, the applet pops up and then i have to select the cable network connection each time for it to connect.

is there any config/ setting i need to fix for ifup to work?
please Help!!!

eth0 = cable
eth1 = gateway (192.168.0.2)

For ifup to work set it in Yast → net settings → global → ifup. Then if you’re using a cable modem for cable internet you can set the eth0 for an IP by DHCP which it should then get from the cable modem.

So set that up then run as root (su to root) a console test of IP addresses with this command: ifconfig. That tests whether the eth0 is getting an IP from the cable modem.