User Tools

Site Tools


Wibed UPC GWs configuration

GW configuration

echo "Configuring Wibed gateway"

uci batch << EOF
set network.loopback.dns=""
set network.upc="route"
set network.upc.netmask=""
set network.upc.gateway=""
set network.upc.interface="wan"
set network.wan="interface"
set network.wan.ifname="eth0.2"
set network.wan.proto="static"
set network.wan.ipaddr=""
set network.wan.netmask=""

echo "sh /root/" >> /etc/rc.local
sed -i s/"exit 0"//g /etc/rc.local

ip tunnel add a1 mode gre local remote
ip addr add dev a1
ip link set a1 up
ip route add default via
iptables -A POSTROUTING -t nat -o a1 -j MASQUERADE

The scripts for both the active gateways can be downloaded here: gw_scripts.tar.gz

Server Configuration

ip tunnel add a1 mode gre remote local
ip addr add dev a1
ip link set a1 up

iptables -A POSTROUTING -t nat -s -j SNAT --to
wibed/upc_gws_config.txt · Last modified: 2015/06/07 23:59 by savemanos