[leaf-user] Can't ping/ssh LEAF firewall by name

2006-05-07 Thread Richard Olson
Hello,
My Bering-uClibc  firewall is mostly working in my test set-up, except 
that nodes on my
LAN cannot access the firewall by name (default firewall). The LAN 
nodes can ping
each other by name.

I am using DHCP. 
In the dnsmasq configuration I have set
 resolv-file= /etc/dhcpc/resolv.conf
 local=/localdomain/
 interface=eth1
 domain=localdomain
When I connect via cable modem the contents of this file look OK:
 search hsd1. tx.comcast.net.
 nameserver 68.87.85.98
 nameserver 68.87.69.146
The contents of  /etc/resolv.conf  are
 nameserver 127.0.0.1
 nameserver 192.168.1.254
and my /etc/hosts file reads
 127.0.0.1   localhost
 192.168.1.254   firewall
Access to internet sites is OK. The system is acting like it is ignoring 
the /etc/hosts file.
I'm not a newbie, but neither am I an expert in networking. I'm 
suspicious of my
setting for local and domain, but not for any particular reason.

Thanks for any help you can give.

Regards, Rich Olson



leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] Can't ping/ssh LEAF firewall by name

2006-05-07 Thread Eric Spakman
Hello Richard,

If you (restart) the dnsmasq daemon, do you see the follwing lines in
/var/log/daemon.log?

..
May  7 21:50:07 firewall dnsmasq[29611]: read /etc/hosts - 12 addresses
May  7 21:50:07 firewall dnsmasq[29611]: reading /etc/dhcpc/resolv.conf
..

Also, how do you ping the firewall? By FQDN (so firewall.domain part)
If you want to ping the firewall by just the short name, you have to
enable the following option in dnsmasq.conf
# Set this (and domain: see below) if you want to have a domain
# automatically added to simple names in a hosts-file.
expand-hosts

domain=private.network

Eric


 Hello,
 My Bering-uClibc  firewall is mostly working in my test set-up, except
 that nodes on my LAN cannot access the firewall by name (default
 firewall). The LAN
 nodes can ping each other by name.

 I am using DHCP.
 In the dnsmasq configuration I have set
 resolv-file= /etc/dhcpc/resolv.conf local=/localdomain/ interface=eth1
 domain=localdomain When I connect via cable modem the contents of this
 file look OK: search hsd1. tx.comcast.net. nameserver 68.87.85.98
nameserver
 68.87.69.146
 The contents of  /etc/resolv.conf  are
 nameserver 127.0.0.1 nameserver 192.168.1.254 and my /etc/hosts file reads
 127.0.0.1   localhost
 192.168.1.254   firewall
 Access to internet sites is OK. The system is acting like it is ignoring
 the /etc/hosts file. I'm not a newbie, but neither am I an expert in
 networking. I'm suspicious of my setting for local and domain, but not
 for any particular reason.

 Thanks for any help you can give.


 Regards, Rich Olson



 
 leaf-user mailing list: leaf-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/leaf-user
 Support Request -- http://leaf-project.org/







leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] Can't ping/ssh LEAF firewall by name

2006-05-07 Thread KP Kirchdoerfer
Am Sonntag, 7. Mai 2006 21:38 schrieb Richard Olson:
 Hello,
 My Bering-uClibc  firewall is mostly working in my test set-up, except
 that nodes on my
 LAN cannot access the firewall by name (default firewall). The LAN
 nodes can ping
 each other by name.

 I am using DHCP.
 In the dnsmasq configuration I have set
  resolv-file= /etc/dhcpc/resolv.conf
  local=/localdomain/
  interface=eth1
  domain=localdomain
 When I connect via cable modem the contents of this file look OK:
  search hsd1. tx.comcast.net.
  nameserver 68.87.85.98
  nameserver 68.87.69.146
 The contents of  /etc/resolv.conf  are
  nameserver 127.0.0.1
  nameserver 192.168.1.254
 and my /etc/hosts file reads
  127.0.0.1   localhost
  192.168.1.254   firewall
 Access to internet sites is OK. The system is acting like it is ignoring
 the /etc/hosts file.
 I'm not a newbie, but neither am I an expert in networking. I'm
 suspicious of my
 setting for local and domain, but not for any particular reason.

 Thanks for any help you can give.

 Regards, Rich Olson

Try setting:

in  /etc/hosts 
192.168.1.254   firewall.localdomain


kp 



leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/


Re: [leaf-user] Can't ping/ssh LEAF firewall by name - Thank you

2006-05-07 Thread Richard Olson
Eric Spakman wrote:
 Hello Richard,

 If you (restart) the dnsmasq daemon, do you see the follwing lines in
 /var/log/daemon.log?

 ..
 May  7 21:50:07 firewall dnsmasq[29611]: read /etc/hosts - 12 addresses
 May  7 21:50:07 firewall dnsmasq[29611]: reading /etc/dhcpc/resolv.conf
 ..

 Also, how do you ping the firewall? By FQDN (so firewall.domain part)
 If you want to ping the firewall by just the short name, you have to
 enable the following option in dnsmasq.conf
 # Set this (and domain: see below) if you want to have a domain
 # automatically added to simple names in a hosts-file.
 expand-hosts

 domain=private.network

 Eric


   
 Hello,
 My Bering-uClibc  firewall is mostly working in my test set-up, except
 that nodes on my LAN cannot access the firewall by name (default
 firewall). The LAN
 nodes can ping each other by name.

 I am using DHCP.
 In the dnsmasq configuration I have set
 resolv-file= /etc/dhcpc/resolv.conf local=/localdomain/ interface=eth1
 domain=localdomain When I connect via cable modem the contents of this
 file look OK: search hsd1. tx.comcast.net. nameserver 68.87.85.98
 
 nameserver
   
 68.87.69.146
 The contents of  /etc/resolv.conf  are
 nameserver 127.0.0.1 nameserver 192.168.1.254 and my /etc/hosts file reads
 127.0.0.1   localhost
 192.168.1.254   firewall
 Access to internet sites is OK. The system is acting like it is ignoring
 the /etc/hosts file. I'm not a newbie, but neither am I an expert in
 networking. I'm suspicious of my setting for local and domain, but not
 for any particular reason.

 Thanks for any help you can give.


 Regards, Rich Olson



 
 leaf-user mailing list: leaf-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/leaf-user
 Support Request -- http://leaf-project.org/


 



   
Thank you to Eric Spakman and KP Kirchdoerfer for you your help.
I checked the daemon.log, which confirmed that the hosts file was indeed 
being read.
I tried both of your suggestions and both worked for me.
Best regards,
Rich Olson



leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/