Hi Florin,

Expert install of RC3 onto a machine with 2 rtl8139.  Internet
connection sharing fails.  Network itself set up during install:
eth0: connects to LAN, configured as 192.168.0.1 during install
eth1: connects to cable modem, configured with fixed IP during install

from command prompt, ran drakgw and noticed error messages (below that
is output of various commands to help diagnose the problem):

[root@damon log]# drakgw
before
$%conf = {
           'ports' => '',
           'disabled' => '1'
         };
after
$%conf = {
           'ports' => '',
           'disabled' => '1',
           'net_interface' => 'eth1',
           'loc_interface' => [
                                'eth0'
                              ]
         };
after masq
$%conf = {
           'ports' => '',
           'disabled' => '1',
           'net_interface' => 'eth1',
           'loc_interface' => [
                                'eth0'
                              ]
         };
installing
/home/damon/mdk9rc3/Mandrake/RPMS//dhcp-common-3.0-1rc9.1mdk.i586.rpm
/home/damon/mdk9rc3/Mandrake/RPMS//shorewall-1.3.7c-1mdk.noarch.rpm
/home/damon/mdk9rc3/Mandrake/RPMS//bind-9.2.1-4mdk.i586.rpm
/home/damon/mdk9rc3/Mandrake/RPMS//iptables-1.2.6a-1mdk.i586.rpm
/home/damon/mdk9rc3/Mandrake/RPMS//dhcp-server-3.0-1rc9.1mdk.i586.rpm
/home/damon/mdk9rc3/Mandrake/RPMS//caching-nameserver-9.0-2mdk.noarch.rpm

rpm: no packages given for erase
You can use the sample named.conf file from the
/usr/share/doc/bind-9.2.1 directory
   Error: Duplicate Interface eth0
/sbin/service: line 148:  3031 Terminated              $debug
$servicedir/$service $options
Stopping CUPS printing system:                                  [  OK  ]
   Error: Duplicate Interface eth0
   Error: Duplicate Interface eth0
[root@damon log]#

[root@damon log]# grep -v ^#
/etc/shorewall/{zones,interfaces,policy,masq,rules} |grep -v ^$

/etc/shorewall/zones:net        Net     Internet zone
/etc/shorewall/zones:masq       Masquerade      Masquerade Local
/etc/shorewall/zones:loc        Local   Local
/etc/shorewall/interfaces:net   eth1    detect
/etc/shorewall/interfaces:masq  eth0    detect
/etc/shorewall/interfaces:loc   eth0    detect
/etc/shorewall/policy:masq      net     ACCEPT
/etc/shorewall/policy:loc       net     ACCEPT
/etc/shorewall/policy:fw        net     ACCEPT
/etc/shorewall/policy:net       all     DROP    info
/etc/shorewall/policy:all       all     REJECT  info
/etc/shorewall/masq:eth1        192.168.1.0/255.255.255.0
/etc/shorewall/rules:ACCEPT     masq    fw      tcp     
domain,bootps,http,https,631,imap,pop3,smtp,nntp,ntp    -
/etc/shorewall/rules:ACCEPT     masq    fw      udp     
domain,bootps,http,https,631,imap,pop3,smtp,nntp,ntp    -
/etc/shorewall/rules:ACCEPT     fw      masq    tcp     631,137,138,139 -
/etc/shorewall/rules:ACCEPT     fw      masq    udp     631,137,138,139 -

[root@damon log]# service named status
number of zones: 3
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running

Some output from /var/log/messages:

Sep 19 20:35:08 damon drakgw[2963]: ### Program is starting ###
Sep 19 20:35:08 damon modprobe: modprobe: Can't locate module eth2
Sep 19 20:35:08 damon modprobe: modprobe: Can't locate module eth3
Sep 19 20:35:08 damon modprobe: modprobe: Can't locate module tr0
Sep 19 20:35:09 damon modprobe: modprobe: Can't locate module tr1
Sep 19 20:35:09 damon modprobe: modprobe: Can't locate module tr2
Sep 19 20:35:09 damon modprobe: modprobe: Can't locate module tr3
Sep 19 20:35:09 damon modprobe: modprobe: Can't locate module fddi0
Sep 19 20:35:09 damon modprobe: modprobe: Can't locate module fddi1
Sep 19 20:35:09 damon modprobe: modprobe: Can't locate module fddi2
Sep 19 20:35:09 damon modprobe: modprobe: Can't locate module fddi3
Sep 19 20:35:09 damon drakgw[2963]: renamed file
/etc/sysconfig/network-scripts/draknet to
/etc/sysconfig/network-scripts/drakconnect
Sep 19 20:35:09 damon drakgw[2963]: [drakgw] kernel_version 2.4
Sep 19 20:35:17 damon drakgw[2963]: renamed file
/etc/sysconfig/network-scripts/draknet to
/etc/sysconfig/network-scripts/drakconnect
Sep 19 20:35:17 damon drakgw[2963]: [drakgw] Information from
netconnect: ignore card eth1
Sep 19 20:35:17 damon modprobe: modprobe: Can't locate module eth2
Sep 19 20:35:17 damon modprobe: modprobe: Can't locate module eth3
Sep 19 20:35:17 damon modprobe: modprobe: Can't locate module tr0
Sep 19 20:35:17 damon modprobe: modprobe: Can't locate module tr1
Sep 19 20:35:17 damon modprobe: modprobe: Can't locate module tr2
Sep 19 20:35:17 damon modprobe: modprobe: Can't locate module tr3
Sep 19 20:35:17 damon modprobe: modprobe: Can't locate module fddi0
Sep 19 20:35:17 damon modprobe: modprobe: Can't locate module fddi1
Sep 19 20:35:17 damon modprobe: modprobe: Can't locate module fddi2
Sep 19 20:35:17 damon modprobe: modprobe: Can't locate module fddi3
Sep 19 20:35:17 damon drakgw[2963]: [drakgw] Have network card: eth0
Sep 19 20:35:17 damon drakgw[2963]: [drakgw] Have network card: eth1
Sep 19 20:35:17 damon drakgw[2963]: [drakgw] Available network cards:
eth0
Sep 19 20:35:21 damon drakgw[2963]: Choosing network device: eth0
Sep 19 20:35:25 damon drakgw[2963]: Using LAN address <192.168.1>
Sep 19 20:35:25 damon drakgw[2963]: launched command: modprobe
iptable_nat
Sep 19 20:35:25 damon kernel: ip_tables: (C) 2000-2002 Netfilter core
team
Sep 19 20:35:25 damon kernel: ip_conntrack version 2.1 (3071 buckets,
24568 max) - 300 bytes per conntrack
Sep 19 20:35:25 damon drakgw[2963]: Reconfiguring network parameters of
eth0
Sep 19 20:35:25 damon drakgw[2963]: running: rpm > /dev/null -q
dhcp-server caching-nameserver bind shorewall
Sep 19 20:35:26 damon drakgw[2963]: installed packages dhcp-server
caching-nameserver bind shorewall
Sep 19 20:35:51 damon drakgw[2963]: running: chkconfig --add shorewall
Sep 19 20:35:51 damon drakgw[2963]: running: service > /dev/null
shorewall restart
Sep 19 20:35:52 damon drakgw[2963]: Configuring a DHCP server on
192.168.1.0
Sep 19 20:35:52 damon drakgw[2963]: launched command:
/usr/sbin/update_dhcp.pl
Sep 19 20:35:52 damon drakgw[2963]: Updating CUPS configuration
accordingly
Sep 19 20:35:52 damon drakgw[2963]: Starting daemons
Sep 19 20:35:52 damon drakgw[2963]: launched command:
/etc/rc.d/init.d/cups status >/dev/null
Sep 19 20:35:52 damon drakgw[2963]: launched command:
/etc/rc.d/init.d/cups stop
Sep 19 20:35:52 damon cups: cupsd shutdown succeeded
Sep 19 20:35:52 damon drakgw[2963]: launched command:
/etc/rc.d/init.d/dhcpd status >/dev/null
Sep 19 20:35:52 damon drakgw[2963]: launched command:
/etc/rc.d/init.d/named status >/dev/null 2>/dev/null
Sep 19 20:35:52 damon drakgw[2963]: launched command:
/etc/sysconfig/network-scripts/net_cnx_down >/dev/null
Sep 19 20:35:53 damon network: Shutting down interface eth0:  succeeded
Sep 19 20:35:53 damon network: Shutting down interface eth1:  succeeded
Sep 19 20:35:54 damon network: Shutting down loopback interface: 
succeeded
Sep 19 20:35:54 damon drakgw[2963]: launched command:
/etc/rc.d/init.d/network restart >/dev/null
Sep 19 20:35:55 damon network: Shutting down loopback interface: 
succeeded
Sep 19 20:35:55 damon network: Setting network parameters:  succeeded
Sep 19 20:35:55 damon network: Bringing up loopback interface: 
succeeded
Sep 19 20:35:55 damon network: Enabling IPv4 packet forwarding succeeded
Sep 19 20:35:55 damon kernel: eth0: Setting half-duplex based on
auto-negotiated partner ability 0000.
Sep 19 20:35:58 damon network: Bringing up interface eth0:  succeeded
Sep 19 20:35:58 damon kernel: eth1: Setting half-duplex based on
auto-negotiated partner ability 0000.
Sep 19 20:36:00 damon network: Bringing up interface eth1:  succeeded
Sep 19 20:36:00 damon drakgw[2963]: launched command:
/etc/sysconfig/network-scripts/net_cnx_up >/dev/null
Sep 19 20:36:01 damon network: Shutting down interface eth0:  succeeded
Sep 19 20:36:01 damon network: Shutting down interface eth1:  succeeded
Sep 19 20:36:01 damon network: Shutting down loopback interface: 
succeeded
Sep 19 20:36:01 damon network: Setting network parameters:  succeeded
Sep 19 20:36:02 damon network: Bringing up loopback interface: 
succeeded
Sep 19 20:36:02 damon network: Enabling IPv4 packet forwarding succeeded
Sep 19 20:36:02 damon kernel: eth0: Setting half-duplex based on
auto-negotiated partner ability 0000.
Sep 19 20:36:04 damon network: Bringing up interface eth0:  succeeded
Sep 19 20:36:04 damon kernel: eth1: Setting half-duplex based on
auto-negotiated partner ability 0000.
Sep 19 20:36:07 damon network: Bringing up interface eth1:  succeeded
Sep 19 20:36:07 damon drakgw[2963]: launched command:
/etc/init.d/shorewall restart >/dev/null
Sep 19 20:36:07 damon drakgw[2963]: [drakgw] Warning, sys failed for
/etc/init.d/shorewall restart >/dev/null
Sep 19 20:36:07 damon drakgw[2963]: launched command:
/etc/rc.d/init.d/named start >/dev/null
Sep 19 20:36:07 damon named[4287]: starting BIND 9.2.1 -u named
Sep 19 20:36:07 damon named[4287]: using 1 CPU
Sep 19 20:36:07 damon named[4289]: loading configuration from
'/etc/named.conf'
Sep 19 20:36:07 damon named: named startup succeeded
Sep 19 20:36:07 damon drakgw[2963]: launched command: /sbin/chkconfig
--level 345 named on
Sep 19 20:36:07 damon drakgw[2963]: launched command:
/etc/rc.d/init.d/dhcpd start >/dev/null
Sep 19 20:36:07 damon named[4289]: no IPv6 interfaces found
Sep 19 20:36:07 damon named[4289]: listening on IPv4 interface lo,
127.0.0.1#53
Sep 19 20:36:07 damon named[4289]: listening on IPv4 interface eth0,
192.168.1.1#53
Sep 19 20:36:07 damon named[4289]: listening on IPv4 interface eth1,
202.0.35.68#53
Sep 19 20:36:07 damon named[4289]: command channel listening on
127.0.0.1#953
Sep 19 20:36:07 damon named[4289]: zone 0.0.127.in-addr.arpa/IN: loaded
serial 1997022700
Sep 19 20:36:07 damon named[4289]: running
Sep 19 20:36:07 damon dhcpd: Wrote 0 leases to leases file.
Sep 19 20:36:07 damon dhcpd: dhcpd startup succeeded
Sep 19 20:36:07 damon drakgw[2963]: launched command: /sbin/chkconfig
--level 345 dhcpd on
Sep 19 20:36:07 damon drakgw[2963]: launched command:
/etc/rc.d/init.d/shorewall start >/dev/null
Sep 19 20:36:08 damon drakgw[2963]: [drakgw] Warning, sys failed for
/etc/rc.d/init.d/shorewall start >/dev/null
Sep 19 20:36:08 damon drakgw[2963]: launched command: /sbin/chkconfig
--level 345 shorewall on
Sep 19 20:36:08 damon drakgw[2963]: launched command:
/etc/rc.d/init.d/cups start >/dev/null
Sep 19 20:36:10 damon cups: cupsd startup succeeded
Sep 19 20:36:14 damon drakgw[2963]: [drakgw] Installation complete,
exiting
Sep 19 20:38:17 damon dhcpd: DHCPREQUEST for 192.168.0.252 from
00:80:ad:77:a2:9b via eth0: ignored (not authoritative).
Sep 19 20:38:53 damon last message repeated 7 times
Sep 19 20:39:17 damon dhcpd: DHCPDISCOVER from 00:80:ad:77:a2:9b via
eth0
Sep 19 20:39:18 damon dhcpd: DHCPOFFER on 192.168.1.253 to
00:80:ad:77:a2:9b (jennifer) via eth0
Sep 19 20:39:18 damon dhcpd: DHCPDISCOVER from 00:80:ad:77:a2:9b
(jennifer) via eth0
Sep 19 20:39:18 damon dhcpd: DHCPOFFER on 192.168.1.253 to
00:80:ad:77:a2:9b (jennifer) via eth0
Sep 19 20:39:18 damon dhcpd: DHCPREQUEST for 192.168.1.253 (192.168.1.1)
from 00:80:ad:77:a2:9b (jennifer) via eth0
Sep 19 20:39:18 damon dhcpd: DHCPACK on 192.168.1.253 to
00:80:ad:77:a2:9b (jennifer) via eth0
Sep 19 20:39:25 damon dhcpd: DHCPDISCOVER from 00:80:ad:77:a2:9b
(jennifer) via eth0
Sep 19 20:39:25 damon dhcpd: DHCPOFFER on 192.168.1.253 to
00:80:ad:77:a2:9b (jennifer) via eth0
Sep 19 20:39:25 damon dhcpd: DHCPDISCOVER from 00:80:ad:77:a2:9b
(jennifer) via eth0
Sep 19 20:39:25 damon dhcpd: DHCPOFFER on 192.168.1.253 to
00:80:ad:77:a2:9b (jennifer) via eth0
Sep 19 20:39:25 damon dhcpd: DHCPREQUEST for 192.168.1.253 (192.168.1.1)
from 00:80:ad:77:a2:9b (jennifer) via eth0
Sep 19 20:39:25 damon dhcpd: DHCPACK on 192.168.1.253 to
00:80:ad:77:a2:9b (jennifer) via eth0

When on the client, could not ping a real IP address
Ran these commands:
$ cat /etc/resolv.conf
nameserver 192.168.1.1
search homeland.net

clearly the nameserver is wrong (should be 192.168.0.1)

$ route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0
lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0
eth0

Hope this helps,
Damon


Reply via email to