WebOS network configuration files

From WebOS Internals
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Configuration in files

Network configuration files from webOS 2.1.0 .

By default, webOS use configuration from dnsmasq process


  • /etc/dnsmasq.palm.conf , in this file, only several parameters are enabled :
# Never forward plain names (with a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
...
# Change this line if you want dns to get its upstream servers from
# somewhere other that /etc/resolv.conf 
resolv-file=/tmp/resolv.conf
...
# By  default,  dnsmasq  will  send queries to any of the upstream
# servers it knows about and tries to favour servers to are  known
# to  be  up.  Uncommenting this forces dnsmasq to try each query
# with  each  server  strictly  in  the  order  they   appear   in
# /etc/resolv.conf
strict-order
...
# If you don't want dnsmasq to poll /etc/resolv.conf or other resolv
# files for changes and re-read them then uncomment this.
no-poll
...
# If you want dnsmasq to listen for requests only on specified interfaces
# (and the loopback) give the name of the interface (eg eth0) here. 
# Repeat the line for more than one interface.
interface=lo                                                             
interface=bridge0
...
# Include a another lot of configuration options.
conf-file=/tmp/pmnetconfig/dnsmasq.server.conf
  • /etc/hosts.conf
order hosts,bind
multi on
  • /etc/hostname
palm-webos
  • /etc/hosts
127.0.0.1	localhost.localdomain		localhost
127.0.0.1	palm-webos


  • /etc/nss_mdns.conf
# Default configuration file for nss_mdns
# Applicable domains
domain local
domain 254.169.in-addr.arpa
domain 8.e.f.ip6.int
domain 9.e.f.ip6.int
domain a.e.f.ip6.int
domain b.e.f.ip6.int
domain 8.e.f.ip6.arpa
domain 9.e.f.ip6.arpa
domain a.e.f.ip6.arpa
domain b.e.f.ip6.arpa


  • /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd:         compat
group:          compat
shadow:         compat
hosts:          files mdns dns
networks:       files
protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
netgroup:       nis
  • /etc/PmWiFiDhclient.conf
...
request subnet-mask, broadcast-address, time-offset, routers,

domain-name, domain-name-servers, host-name;

...
timeout 15;
retry 30;
reboot 10;
initial-interval 1;
script "/etc/PmWiFiDhclient-script";
  • /etc/resolv.conf : nothing


  • /etc/dhcp/dhclient.conf
request subnet-mask, broadcast-address, time-offset, routers,

domain-name, domain-name-servers, host-name, netbios-name-servers, netbios-scope;

  • /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
iface atml0 inet dhcp
# Wired or wireless interfaces
iface eth0 inet dhcp
iface eth1 inet dhcp
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static

address 192.168.0.202 netmask 255.255.255.0 network 192.168.0.0 gateway 192.168.0.200 metric 40

# Temporarily add support for old IP address
# and automatically bring the interface up
auto usb0:1
iface usb0:1 inet static

address 192.168.2.101 netmask 255.255.255.0 network 192.168.2.0

# Bluetooth networking
iface bnep0 inet dhcp
  • /etc/network/options
ip_forward=no
spoofprotect=yes
syncookies=no

External links