0xff Backfire-Vienna-Weiterführendes

Aus FunkFeuer Wiki
Wechseln zu: Navigation, Suche

Tunnel Setup

siehe Tunnel_Setup oder auch Tunnel_Setup_-_Backfire_Vienna_2.0


OpenVPN für das private Netz

siehe OpenVPN_für_das_private_Netz


Server ohne olsr

siehe Server_ohne_olsr


OLSR-Konfiguration

siehe OLSR-Konfiguration


MobileNodes

siehe MobileNodes


IRC Chat

siehe IRC


VoIP Client

siehe VoIP_Client_Konfiguration


Services

siehe Services


Unix Tipps

siehe Unix_tips


Port Scans

siehe Port_Scans


zusätzl. Packages installieren

siehe 0xff_Backfire-Vienna-Packages


USB

z.b. am TP-Link TL WR-1043ND

http://wiki.openwrt.org/tag/usbrelated?do=showtag&tag=tag%3Ausbrelated

http://wiki.openwrt.org/doc/howto/usb.essentials

Pakete installieren

 opkg install kmod-usb-core kmod-usb-ohci kmod-usb-uhci kmod-usb2 usbutils


GPS (+NTP)

http://gpsd.berlios.de/gpsd.html

http://h-wrt.com/de/doc/gps

Pakete installieren

 opkg install kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-pl2303 gpsd

Zusätzliche usb-serial Treiber nach Bedarf... kmod-usb-serial-*

Parameter -n entfernen in /etc/init.d/gpsd

 $PROG -P $PIDF -S $port $device

Tools zum Testen:

 cgps <IP>:<PORT>
 xgps <IP>:<PORT>
 telnet  <IP>:<PORT>

Bei telnet z.b. ?DEVICE; als Befehl eingeben.

Um von einer externen IP zugreifen zu können, muss der gpsd mit -G gestartet werden:

 gpsd -G /dev/ttyUSB


NTP

Zeitsync mit NTPD

Folgendes funktioniert nur, wenn der gpsd von einer anderen Applikation gepollt wird. Die Option -n des gpsd macht Probleme.

http://gpsd.berlios.de/gpsd.html

Pakete installieren

 opkg install ntpd

Mindestens einen Server + GPS konfigurieren in /etc/ntp.conf

# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers

#restrict default nomodify notrap noquery
#restrict default noquery


restrict 127.0.0.1

driftfile  /tmp/ntp.drift

server 0.openwrt.pool.ntp.org iburst
#server 1.openwrt.pool.ntp.org iburst
#server 2.openwrt.pool.ntp.org iburst
#server 3.openwrt.pool.ntp.org iburst


# GPS(NMEA)+PPS
#server 127.127.20.0 minpoll 4 prefer
#fudge 127.127.20.0 flag3 1 flag2 0

# SMA PPS
#server 127.127.28.0 minpoll 4 prefer
#fudge 127.127.28.0 refid PPS flag3 1

server 127.127.28.0 minpoll 4 maxpoll 4
fudge 127.127.28.0 time1 0.035 refid GPS  flag3 1

server 127.127.28.1 minpoll 4 maxpoll 4 prefer
fudge 127.127.28.1 refid GPS1 flag3 1

#server 192.168.1.253

Tools zum testen:

 ntpq -p

Output etwa wie folgt:

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+173-8-103-244-M 18.26.4.105      2 u   24   64  311  165.747    5.503  32.117
*SHM(0)          .GPS.            0 l    5   16  377    0.000   16.266  21.334
 SHM(1)          .GPS1.           0 l    -   16    0    0.000    0.000   0.000


STORAGE

http://wiki.openwrt.org/doc/howto/usb.storage

Pakete installieren

 opkg install kmod-scsi-core kmod-usb-storage kmod-usb-storage-extras block-mount kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1

Zusätzliche Filesysteme nach Bedarf... kmod-fs-*


3G/UMTS/Modem

http://wiki.openwrt.org/doc/recipes/3gdongle

http://wiki.openwrt.org/doc/uci/network#protocol.3g.ppp.over.ev-do.cdma.umts.or.grps

Pakete installieren (thx an joe: im build r1123 für TL WR-1043 dind die pkg bereits im firmwareimage enthalten)

 opkg install usbutils kmod-usb-serial kmod-usb-serial-option usb-modeswitch usb-modeswitch-data comgt ppp luci-proto-3g sdparm

Config

nur kleine Änderungen zu den Originalscripts, je nach Stick und Provider

Testdongle: ZTE MF680 (/dev/ttyUSB2), g4 systems XS Stick P14 (/dev/ttyUSB3)

 vim /etc/config/network
config 'interface' 'wan2'   
        option 'ifname'  'ppp0'
        option 'pincode' 'XXXX'          # anpassen!
        option 'device'  '/dev/ttyUSB2'  # anpassen! 
        option 'apn'     'XXX.at'        # anpassen!
        option 'service' 'umts'
        option 'proto'   '3g'   
 #       option 'username' 'data@bob.at' #ev.für bestimmte provider notwendig
 #       option 'password' 'ppp'         #ev.für bestimmte provider notwendig
 vim /etc/chatscripts/3g.chat
ABORT   BUSY
ABORT   'NO CARRIER'
ABORT   ERROR
REPORT  CONNECT
TIMEOUT 10
""      "AT&F"
OK      "ATE1"
OK      'AT+CGDCONT=1,"IP","$USE_APN"'
SAY     "Calling UMTS/GPRS"
TIMEOUT 30
OK      "ATD*99#"                        # anpassen
CONNECT ' '

wan2 interface up nehmen mit

 ifup wan2
 ifconfig | grep -A2 wan2

sollte dann etwa folgenden output liefern:

3g-wan2   Link encap:Point-to-Point Protocol  
          inet addr:178.115.186.40  P-t-P:10.64.64.64  Mask:255.255.255.255

und ein traceroute um die verbindung zu testen:

 traceroute texas.funkfeuer.at
traceroute to texas.funkfeuer.at (193.238.157.78), 30 hops max, 38 byte packets
 1  172.18.22.0 (172.18.22.0)  1161.275 ms  115.027 ms  37.276 ms
 2  172.18.25.1 (172.18.25.1)  47.727 ms  46.200 ms  45.285 ms
...
11  81.16.148.146 (81.16.148.146)  36.933 ms  46.222 ms  49.279 ms
12  texas.funkfeuer.at (193.238.157.78)  47.152 ms  47.924 ms  119.160 ms

zusätzlich für g4 systems XS Stick P14

 vim /etc/modules.d/60-usb-serial
#usbserial
usbserial vendor=0x1c9e product=0x9605

POWERCYCLE needed!!!


zurück zu wiki_funkfeuer_at
< Startseite > < Backfire-Vienna > < Standards > < Installation > < Weiterführendes > < Aktivitäten > < Index >

<google>WIKI</google>