I ran drakgw and got some errors in the background (see below).
I found that the gateway was setup correctly but shorewall was blocking
the connection - when I stopped shorewall (after running drakgw)
everything worked fine. There's something wrong with the shorewall
config together with drakgw.
See here:
[root@amda7v cooker]# drakgw
before
$%conf = {
'ports' => '',
'disabled' => '1'
};
after
$%conf = {
'ports' => '',
'disabled' => '1',
'net_interface' => 'eth0',
'loc_interface' => [
'eth1'
]
};
after masq
$%conf = {
'ports' => '',
'disabled' => '1',
'masquerade' => {
'interface' => 'eth1'
},
'net_interface' => 'eth0',
'loc_interface' => []
};
/etc/init.d/shorewall: line 1:
192.168.1.0/255.255.255.0_masq_nat_exists=Yes: No such file or directory
Stopping CUPS printing system: [ OK ]
Shutting down dhcpd: [ OK ]
Stopping named: [ OK ]
SIOCADDRT: Network is unreachable
SIOCADDRT: Network is unreachable
/etc/init.d/shorewall: line 1:
192.168.1.0/255.255.255.0_masq_nat_exists=Yes: No such file or directory
[root@amda7v cooker]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:7D:8C:E5:85
inet addr:192.168.10.101 Bcast:192.168.10.255
Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1131716 errors:0 dropped:0 overruns:0 frame:0
TX packets:1800958 errors:0 dropped:0 overruns:8 carrier:0
collisions:0
RX bytes:1216641939 (1160.2 Mb) TX bytes:1639026635 (1563.0 Mb)
eth1 Link encap:Ethernet HWaddr 00:30:BD:63:8B:7A
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8869 errors:66729 dropped:4101 overruns:6 frame:143900
TX packets:16099 errors:66729 dropped:4096 overruns:70888
carrier:137858
collisions:66732
RX bytes:561170 (548.0 Kb) TX bytes:23837793 (22.7 Mb)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:960 errors:0 dropped:0 overruns:0 frame:0
TX packets:960 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:76546 (74.7 Kb) TX bytes:76546 (74.7 Kb)
vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
inet addr:172.16.34.1 Bcast:172.16.34.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:485 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root@amda7v cooker]# tail -f /var/log/messages
Sep 19 15:09:40 amda7v named[4611]: command channel listening on
127.0.0.1#953
Sep 19 15:09:40 amda7v named[4611]: zone 0.0.127.in-addr.arpa/IN: loaded
serial 1997022700
Sep 19 15:09:40 amda7v named[4611]: running
Sep 19 15:09:40 amda7v drakgw[836]: launched command: /sbin/chkconfig
--level 345 shorewall on
Sep 19 15:09:40 amda7v drakgw[836]: launched command:
/etc/rc.d/init.d/cups start >/dev/null
Sep 19 15:09:43 amda7v nmbd[2199]: [2002/09/19 15:09:43, 0]
libsmb/nmblib.c:send_udp(756)
Sep 19 15:09:43 amda7v nmbd[2199]: Packet send failed to
192.168.10.255(138) ERRNO=Operation not permitted
Sep 19 15:09:44 amda7v cups: cupsd startup succeeded
Sep 19 15:09:46 amda7v drakgw[836]: [drakgw] Installation complete, exiting
Sep 19 15:10:22 amda7v dhcpd: DHCPREQUEST for 192.168.0.251 from
00:30:bd:63:8a:4b via eth1: ignored (not authoritative).
Then I shutdown shorewall and the connection worked fine.
Thx,
R.Fox