Czech

Suse Linux 10.2



Connecting a local net to the internet.


07.07.11

Server configuration

1) Server is computer which is connected to the internet and is sharing internet connection for local net clients.
Modem connection log:

# adsl
RFC1483/2684 bridge: Interface "nas0" created successfully
RFC1483/2684 bridge: Communicating over ATM 0.8.48, encapsulation: LLC
RFC1483/2684 bridge: Interface configured
Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.3 compiled against pppd 2.4.4
Using interface ppp0
Connect: ppp0 <--> nas0
PAP authentication succeeded
peer from calling number 00:12:80:1F:CC:48 authorized
local  IP address 85.71.162.158
remote IP address 80.188.61.113
primary   DNS address 194.228.41.65
secondary DNS address 194.228.41.113
Script /etc/ppp/ip-up finished (pid 18379), status = 0x0


Shoult be correctly ping to all log IP addresses

1-1) Routing table after modem connecting:

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
80.188.61.113   *               255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default       *               0.0.0.0         U     0      0        0 ppp0


1-2) Net configuration

YaST->Network Devices->Network Card
IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0
Host Name and Nameserver: 
Host Name: jarda
Domain Name: site
Name Server 1: 194.228.41.65
Name Server 2: 194.228.41.113
Domain Search: site
Routing:
Default Gateway: 80.188.61.113
Zaskrtnout: Enable IP Forwarding
General:
Firewall Zone: Internal Zone

YaST->Security and users->Firewall
Interfaces: 
Device		|	Interface or string	|	Configured In
Realtek RT8139	|	eth-id-00		|	Internal Zone
Custom string	|	ppp0			|	External Zone
Masquarading: 
Zaskrtnout: Masquarade Network
Source Network	|	Protocol	|	Req. IP		|	Req. Port	|	Redir. to IP	|	Redir. to Port
0/0		|	tcp		|	192.168.1.1	|	ndl-aas (3128)	|	80.188.61.113	|	ndl-aas (3128)
0/0		|	tcp		|	192.168.1.3	|	ndl-aas (3128)	|	80.188.61.113	|	ndl-aas (3128)


Client configuration

2) Local net client is connected to the server

2-1) Routing table:

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
link-local      *               255.255.0.0     U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         jarda.DOMA      0.0.0.0         UG    0      0        0 eth0


1-2) Net connection

YaST->Network Devices->Network Card
IP Address: 192.168.1.3
Subnet Mask: 255.255.255.0
Host Name and Nameserver: 
Host Name: kwan
Domain Name: site
Name Server 1: 194.228.41.65
Name Server 2: 194.228.41.113
Domain Search: site
Routing:
Default Gateway: 192.168.1.1
General:
Firewall Zone: Internal Zone


8-3) Should be ping to google.com

# ping google.com



home / linux / suse linux


Valid XHTML 1.0 Transitional