[Kiezfunk] [FYI] gvpn

Patrick Grimm patrick at lunatiki.de
Di Mai 19 02:40:10 CEST 2009


Hi

Ich habe folgendes auf lachman gemacht
uci set olsrd. at olsrd[-1].RtTable=111
# olsrd. at LoadPlugin[0].library=olsrd_dyn_gw.so.0.4
uci set olsrd. at LoadPlugin[0].ignore=1
uci commit

---/etc/rc.local---
ip rule add from 104.8.0.33/8 table 111
ip rule add to 104.8.0.33/8 table 111
ip rule add from 77.87.48.0/26 table 111
ip rule add to 77.87.48.0/26 table 111
ip route add 104.8.2.32/28 dev eth0 table 111
ip route add 104.8.2.48/28 dev eth0 table 111
---/etc/rc.local---

---/etc/config/firewall---
config 'forwarding'
        option 'src' 'zlan0'
        option 'dest' 'zgvpn'
        option 'mtu_fix' '1'

config 'forwarding'
        option 'src' 'zlan1'
        option 'dest' 'zgvpn'
        option 'mtu_fix' '1'

config 'forwarding'
        option 'src' 'zgvpn'
        option 'dest' 'zlan0'

config 'forwarding'
        option 'src' 'zgvpn'
        option 'dest' 'zlan1'
---/etc/config/firewall---
reboot

Und auf kifuse03
ip addr add 77.87.48.43/32 dev eth1 label eth1:1
echo "Hna4" >> /etc/olsrd.conf
echo "{" >> /etc/olsrd.conf
echo "        77.87.48.43 255.255.255.255" >> /etc/olsrd.conf
echo "}" >> /etc/olsrd.conf

Ergebnis:
Auf meinem vserver
h1112006:~ # wget -O /dev/null http://77.87.48.43:8000/
    [                                                          <=>                                                                            ] 580,188       44.43K/s

@justus
Die usb cams sind jetzt aus dem WWW ereichbar. :-)
http://77.87.48.43:8000/
http://77.87.48.43:8002/
http://77.87.48.43:8004/

@daniel
Ich habe die IP aus dem tinc subnet genommen.
Ist das OK? Oder hast du einen besseren Vorschlag?

Gruss
                Patrick




Mehr Informationen über die Mailingliste Kiezfunk