root@REST-HOUSE:~# iptables -nvL Chain INPUT (policy ACCEPT 2018K packets, 222M bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 107K packets, 8976K bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 1884K packets, 349M bytes) pkts bytes target prot opt in out source destination root@REST-HOUSE:~# ============================================ ============================================ ============================================ root@REST-HOUSE:~# cat /etc/olsrd.conf # # olsr.org OLSR daemon config file # # Lines starting with a # are discarded # # This file was shipped with olsrd 0.X.X # # Debug level(0-9) # If set to 0 the daemon runs in the background DebugLevel 1 # IP version to use (4 or 6) IpVersion 4 # Clear the screen each time the internal state changes ClearScreen no # HNA IPv4 routes # syntax: netaddr netmask # Example Internet gateway: # 0.0.0.0 0.0.0.0 Hna4 { # Internet gateway: 0.0.0.0 0.0.0.0 # more entries can be added: # 192.168.1.0 255.255.255.0 # 189.12.12.0 255.255.255.0 # 141.1.1.0 255.255.255.0 } # HNA IPv6 routes # syntax: netaddr prefix # Example Internet gateway: Hna6 { # Internet gateway: # :: 0 # more entries can be added: # fec0:2200:106:: 48 } # Should olsrd keep on running even if there are # no interfaces available? This is a good idea # for a PCMCIA/USB hotswap environment. # "yes" OR "no" AllowNoInt yes # TOS(type of service) value for # the IP header of control traffic. # If not set it will default to 16 #TosValue 16 # The fixed willingness to use(0-7) # If not set willingness will be calculated # dynamically based on battery/power status # if such information is available #Willingness 4 # Allow processes like the GUI front-end # to connect to the daemon. IpcConnect { # Determines how many simultaneously # IPC connections that will be allowed # Setting this to 0 disables IPC MaxConnections 0 # By default only 127.0.0.1 is allowed # to connect. Here allowed hosts can # be added Host 127.0.0.1 #Host 10.0.0.5 # You can also specify entire net-ranges # that are allowed to connect. Multiple # entries are allowed #Net 192.168.1.0 255.255.255.0 } # Whether to use hysteresis or not # Hysteresis adds more robustness to the # link sensing but delays neighbor registration. # Used by default. 'yes' or 'no' UseHysteresis no # Hysteresis parameters # Do not alter these unless you know # what you are doing! # Set to auto by default. Allowed # values are floating point values # in the interval 0,1 # THR_LOW must always be lower than # THR_HIGH. HystScaling 0.50 HystThrHigh 0.80 HystThrLow 0.30 # Link quality level # 0 = do not use link quality # 1 = use link quality for MPR selection # 2 = use link quality for MPR selection and routing # Defaults to 0 LinkQualityLevel 0 # Link quality window size # Defaults to 10 #LinkQualityWinSize 10 # Polling rate in seconds(float). # Default value 0.05 sec Pollrate 0.05 # TC redundancy # Specifies how much neighbor info should # be sent in TC messages # Possible values are: # 0 - only send MPR selectors # 1 - send MPR selectors and MPRs # 2 - send all neighbors # # defaults to 0 TcRedundancy 0 # # MPR coverage # Specifies how many MPRs a node should # try select to reach every 2 hop neighbor # # Can be set to any integer >0 # # defaults to 1 #MprCoverage 1 # Olsrd plugins to load # This must be the absolute path to the file # or the loader will use the following scheme: # - Try the paths in the LD_LIBRARY_PATH # environment variable. # - The list of libraries cached in /etc/ld.so.cache # - /lib, followed by /usr/lib # Example plugin entry with parameters: #LoadPlugin "olsrd_dyn_gw.so.0.3" #{ # Here parameters are set to be sent to the # plugin. Theese are on the form "key" "value". # Parameters ofcause, differs from plugin to plugin. # Consult the documentation of your plugin for details. # Example: dyn_gw params # how often to check for Internet connectivity # defaults to 5 secs # PlParam "Interval" "40" # if one or more IPv4 addresses are given, do a ping on these in # descending order to validate that there is not only an entry in # routing table, but also a real internet connection. If any of # these addresses could be pinged successfully, the test was # succesful, i.e. if the ping on the 1st address was successful,the # 2nd won't be pinged # PlParam "Ping" "141.1.1.1" # PlParam "Ping" "194.25.2.129" #} #------------------------------------------------------------ # Prova caricamento del plug-in # 13/09/2006 Gian Maria Giani #------------------------------------------------------------ #LoadPlugin "olsrd_power.so.0.3" #{ # battery_threshold: define threshold mininum for the # battery # # PlParam "battery_threshold" "60" # PlParam "fault_message" "no" # PlParam "threshold_message" "35" # PlParam "admin_address" "syst3mcrash3r@gmail.com" # PlParam "hostname" "myMule" #} #------------------------------------------------------------ # Caricamento del plug-in mutiface # 13/09/2006 Gian Maria Giani #------------------------------------------------------------ #LoadPlugin "olsrd_multiface.so.0.3" #{ # battery_threshold: define threshold mininum for the # battery #PlParam "interface_1" "ath1" #PlParam "interface_2" "wlan0" #PlParam "interface_3" "eth1" #PlParam "interface_4" "eth0" #PlParam "interface_5" "eth0" #} #------------------------------------------------------------ # Caricamento del plug-in channelset # 13/09/2006 Gian Maria Giani #------------------------------------------------------------ #LoadPlugin "olsrd_channelset.so.0.3" #{ # master_address: definisce l'indirizzo del server di gestione # per quanto riguarda il cambio del canale # hostname: nome del nodo # isAP: parametro utilizzato per identificare se nel nodo è presente # una eventuale interfaccia di access point # AP: indirizzo di rete dell'eventuale interfaccia del nodo utilizzata # come access_point # AP_int_name: nome dell'interfaccia utilizzata come AP # Channelset_timer: timer di lancio del plugin channelset. Da indicare #in secondi. # PlParam "master_address" "192.168.1.195" # #PlParam "master_address" "192.168.4.230" # PlParam "hostname" "Rest-house" # PlParam "isAP" "1" # PlParam "AP" "10.16.0.1" # PlParam "AP_int_name" "ath0" # PlParam "Channelset_timer" "20" # PlParam "delimiters" " \t\r=" # PlParam "essid" "OpenWrt" # PlParam "tokessid" "ESSID" # PlParam "tokchannel" "(Channel" # PlParam "remchannel" ")" # PlParam "tokmode" "Mode:" # #} #------------------------------------------------------------ # Dynaconf # 6/11/06 Matteo Giulini #------------------------------------------------------------ #LoadPlugin "dynaconf.so.0.1" #{ # PlParam "C1" "1" # PlParam "C2" "1" # PlParam "N1" "6" # PlParam "N2" "3" # PlParam "TMIN" "-1.0" # PlParam "TMAX" "1.0" # PlParam "DELTA" "0.5" # PlParam "EMISSION_INTERVAL" "4" # PlParam "NETSTATPATH" "/usr/tmpnstat" # PlParam "NETSTATINTERVAL" "20" #} #LoadPlugin "holsr.so.0.2" #{ # PlParam "Interval" "5" # PlParam "Intracluster_if" "ath0" # PlParam "Extracluster_if" "ath0" #} # Erc 0.3 by Matteo Giulini # Option for enabling/disabling enhanced routing table calculation. # 1 -> enabled. #LoadPlugin "erc.so.0.3" #{ # PlParam "RoutingCalculation" "0" # PlParam "DebugMode" "1" # PlParam "BatteryWeight" "0" # PlParam "SnrWeight" "0" # PlParam "LoadStatusWeight" "0" # PlParam "LoadWeight" "1" # PlParam "MinBatteryWeight" "0" # PlParam "ForeseeFailures" "1" # PlParam "TimeBetweenFailures" "10" # PlParam "FailuresWeight" "0" # PlParam "NLNFInterval" "10" # PlParam "FRInterval" "20" # PlParam "DBvtime" "60" #} #LoadPlugin "linkinfo.so.0.5" #{ # PlParam "Interval" "5" # PlParam "Validity" "30" # PlParam "NETSTATPATH" "/usr/tmpli" # PlParam "NETSTATINTERVAL" "20" # PlParam "IGWINTERFACE" "eth0" #} # Interfaces and their rules # Omitted options will be set to the # default values. Multiple interfaces # can be specified in the same block # and multiple blocks can be set. # !!CHANGE THE INTERFACE LABEL(s) TO MATCH YOUR INTERFACE(s)!! # (eg. wlan0 or eth1): Interface "ath1" { # IPv4 broadcast address to use. The # one usefull example would be 255.255.255.255 # If not defined the broadcastaddress # every card is configured with is used # Ip4Broadcast 255.255.255.255 # IPv6 address scope to use. # Must be 'site-local' or 'global' # Ip6AddrType site-local # IPv6 multicast address to use when # using site-local addresses. # If not defined, ff05::15 is used # Ip6MulticastSite ff05::11 # IPv6 multicast address to use when # using global addresses # If not defined, ff0e::1 is used # Ip6MulticastGlobal ff0e::1 # Emission intervals. # If not defined, RFC proposed values will # be used in most cases. # Hello interval in seconds(float) # HelloInterval 2.0 # HELLO validity time # HelloValidityTime 16.0 # TC interval in seconds(float) # TcInterval 5.0 # TC validity time # TcValidityTime 15.0 # MID interval in seconds(float) # MidInterval 5.0 # MID validity time # MidValidityTime 15.0 # HNA interval in seconds(float) # HnaInterval 5.0 # HNA validity time # HnaValidityTime 15.0 # When multiple links exist between hosts # the weight of interface is used to determine # the link to use. Normally the weight is # automatically calculated by olsrd based # on the characteristics of the interface, # but here you can specify a fixed value. # Olsrd will choose links with the lowest value. # Weight 0 } root@REST-HOUSE:~# ============================================ ============================================ ============================================ The IP package is not installed on this node ============================================ ============================================ ============================================ root@REST-HOUSE:~# iwconfig **** output non-wireless interfaces has been deleted here **** wifi0 no wireless extensions. wifi1 no wireless extensions. ath0 IEEE 802.11b ESSID:"adhocsys.org" Nickname:"" Mode:Master Frequency:2.412 GHz Access Point: 00:0B:6B:57:EC:91 Bit Rate:0 kb/s Tx-Power:16 dBm Sensitivity=0/3 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=7/94 Signal level=-88 dBm Noise level=-95 dBm Rx invalid nwid:214553 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 ath1 IEEE 802.11b ESSID:"adhocsys-mesh2" Nickname:"" Mode:Ad-Hoc Frequency:2.437 GHz Cell: 00:00:5E:80:00:02 Bit Rate:0 kb/s Tx-Power=15 dBm Sensitivity=0/3 Retry:off RTS thr:off Fragment thr:off Encryption key:6164-686F-6373-7973-3132-3334-35 Security mode: restricted Power Management:off Link Quality=14/94 Signal level=-81 dBm Noise level=-95 dBm Rx invalid nwid:180354 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 tun0 no wireless extensions. root@REST-HOUSE:~#