[ previous ] [ next ] [ threads ]
 
 From:  ubi de feo <ubi at twodotone dot com>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  WAN as DHCP and unreachable gateway
 Date:  Thu, 22 Jul 2004 23:16:25 +0200
hi, guys.
i know i might bother someone in here, but i'm really gonna have my 
net4801 working.

after solving many issues with my speedtouch modem (it took me months),
i happen to have m0n0 getting all the data from the DHCP server:
public IP
subnet
gateway
DNS


now, here's the situation i face after setting the WAN interface as DHCP
i think the only thing i'm actually missing is the right RULE for the 
firewall.

i went through many steps.
first tried getting everything working on XP.
it does

here it is

Ethernet adapter Local Area Connection 3:

         Connection-specific DNS Suffix  . : lan
         Description . . . . . . . . . . . : Realtek RTL8139 Family PCI 
Fast Eth
rnet NIC #3
         Physical Address. . . . . . . . . : 00-10-A7-2A-7F-B4
         Dhcp Enabled. . . . . . . . . . . : Yes
         Autoconfiguration Enabled . . . . : Yes
         IP Address. . . . . . . . . . . . : 213.84.18.xxx
         Subnet Mask . . . . . . . . . . . : 255.255.255.0
         Default Gateway . . . . . . . . . : 195.190.249.11
         DHCP Server . . . . . . . . . . . : 10.0.0.138
         DNS Servers . . . . . . . . . . . : 10.0.0.138
                                             194.109.104.104
                                             194.109.6.66
         Lease Obtained. . . . . . . . . . : Thursday, July 22, 2004 
10:43:35 PM
         Lease Expires . . . . . . . . . . : Thursday, July 22, 2004 
10:44:05 PM



then i checked the m0n0 logs

here they are

Jul 22 20:46:20 dhclient: bound to 213.84.18.234 -- renewal in 12 
seconds.
Jul 22 20:46:16 dhcpd: For info, please visit 
http://www.isc.org/products/DHCP
Jul 22 20:46:16 dhcpd: All rights reserved.
Jul 22 20:46:16 dhcpd: Copyright 1995-2003 Internet Software Consortium.
Jul 22 20:46:16 dhcpd: Internet Software Consortium DHCP Server 
V3.0.1rc11
Jul 22 20:46:16 dhclient: New Routers: 195.190.249.11
Jul 22 20:46:16 dhclient: New Broadcast Address (sis1): 213.84.18.255
Jul 22 20:46:16 dhclient: New Subnet Mask (sis1): 255.255.255.0
Jul 22 20:46:16 dhclient: New IP Address (sis1): 213.84.18.234
Jul 22 20:46:16 dhclient: New Broadcast Address: 213.84.18.255
Jul 22 20:46:16 dhclient: New Network Number: 213.84.18.0
Jul 22 20:46:16 dhclient: DHCPACK from 10.0.0.138
Jul 22 20:46:16 dhclient: DHCPREQUEST on sis1 to 255.255.255.255 port 67
Jul 22 20:46:16 dhclient: DHCPOFFER from 10.0.0.138
Jul 22 20:46:15 dnsmasq[2838]: using nameserver 10.0.0.138#53
Jul 22 20:46:15 dnsmasq[2838]: using nameserver 194.109.104.104#53
Jul 22 20:46:15 dnsmasq[2838]: using nameserver 194.109.6.66#53
Jul 22 20:46:15 dnsmasq[2838]: reading /etc/resolv.conf
Jul 22 20:46:15 dnsmasq[2838]: read /etc/hosts - 4 addresses
Jul 22 20:46:15 dnsmasq[2838]: started, version 1.18 cachesize 150
Jul 22 20:46:14 dhclient: DHCPDISCOVER on sis1 to 255.255.255.255 port 
67 interval 3
Jul 22 20:46:11 dhclient: Sending on Socket/fallback
Jul 22 20:46:11 dhclient: Sending on BPF/sis1/00:00:24:c2:42:4d
Jul 22 20:46:11 dhclient: Listening on BPF/sis1/00:00:24:c2:42:4d

am i wroong saying there's everything needed???

but, when i ping from the m0n0 web-gui

ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
PING 212.239.41.2 (212.239.41.2): 56 data bytes

--- 212.239.41.2 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss


and on the interfaces page of the web-gui
this is the WAN interface

Status up
MAC address 00:00:24:c2:42:4d
IP address 213.84.18.234
Subnet mask 255.255.255.0
Media 100baseTX <full-duplex>
In/out packets 845/892 (102 KB/110 KB)


it gets everything but no gateway, which i think is the reason why it 
can't ping.

is there a way to have m0n0 work on this configuration?
i tried several times to make PPTP but no way.
it refuses to work on both my speedtouch modems

please, help me out and i promise i won't bother anymore

thanx to everybody

ciao.ubi