summaryrefslogtreecommitdiff
path: root/config/obr/rc.net
blob: d11307fa705f6d3de5f093872c25355d1e700a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
echo ifnet: bringing up interfaces

# vr0: uplink, iWay requires us to use DHCP though we have a static IP

dhclient vr0

# vr1: bridge to vr2

ifconfig vr1 up description "LAN bridge"
 
ifconfig bridge0 create
ifconfig bridge0 add vr1
ifconfig bridge0 add vr2 

ifconfig bridge0 blocknonip vr1
ifconfig bridge0 blocknonip vr2

ifconfig bridge0 up

# athn0: wireless bridged to LAN

ifconfig athn0 mode 11g chan 13 mediaopt hostap nwid Fornost wpakey wfpwd@home wpaprotos wpa2 up

ifconfig bridge0 add athn0

# vr2: internal protected network (internal networks inside in 192.168.1.0/24)

ifconfig vr2 192.168.1.1 netmask 255.255.255.0 description "LAN internal"
route add -net 192.168.1.0/24 192.168.1.1