Die Artikel im Archiv-Namespace sind veraltet und werden nur noch aus historischen Gründen aufbewahrt.

Archiv:Linksys WRT54GL config

Aus wiki.freifunk.net
Zur Navigation springenZur Suche springen

Network wrt54gl.jpg


system openwrt

/etc/config/network

config 'switch' 'eth0'
       option 'vlan1' '4 5'
       option 'vlan0' '1 2 3 5*'
       option 'vlan2' '0 5'        
       option 'vlan3' '1 5'
config 'interface' 'loopback'
       option 'ifname' 'lo'
       option 'proto' 'static'
       option 'ipaddr' '127.0.0.1'
       option 'netmask' '255.0.0.0'
config 'interface' 'lan'
       option 'type' 'bridge'
       option 'ifname' 'eth0.0'
       option 'proto' 'static'
       option 'ipaddr' '192.168.1.1'
       option 'netmask' '255.255.255.0'
config 'interface' 'wan'
       option 'ifname' 'eth0.1'
       option 'proto' 'static'
       option 'netmask' '255.255.255.0'
       option 'defaultroute' '0'
       option 'peerdns' '0'
       option 'ipaddr' '192.168.178.100'
       option 'gateway' '192.168.178.1'
       option 'dns' '82.229.244.191'
config 'interface' 'lan2'
       option 'proto' 'static'
       option 'ifname' 'eth0.2'
       option 'netmask' '255.255.255.0'
       option 'type' 'bridge'
       option 'ipaddr' '192.168.200.1'
config 'interface' 'lan3'      
       option 'proto' 'static'

/etc/config/firewall

config 'defaults'
       option 'syn_flood' '1'
       option 'input' 'ACCEPT'
       option 'output' 'ACCEPT'
       option 'forward' 'REJECT'
config 'zone'
       option 'name' 'lan'
       option 'input' 'ACCEPT'
       option 'output' 'ACCEPT'
       option 'forward' 'REJECT'
config 'zone'
       option 'name' 'wan'
       option 'input' 'REJECT'
       option 'output' 'ACCEPT'
       option 'forward' 'REJECT'
       option 'masq' '1'
config 'forwarding'
       option 'src' 'lan'
       option 'dest' 'wan'
       option 'mtu_fix' '1'
config 'include'
       option 'path' '/etc/firewall.user'
config 'zone'
       option 'name' 'lan2'
       option 'input' 'ACCEPT'
       option 'output' 'ACCEPT'
       option 'forward' 'REJECT'
config 'forwarding'
       option 'src' 'lan2'
       option 'dest' 'wan'
       option 'mtu_fix' '1'
config 'zone'
       option 'name' 'lan3'
       option 'input' 'ACCEPT'
       option 'output' 'ACCEPT'
       option 'forward' 'REJECT'                              
       config 'forwarding'
       option 'src' 'lan3'
       option 'dest' 'wan'
       option 'mtu_fix' '1'


/etc/config/dhcp

config 'dnsmasq'
       option 'domainneeded' '1'
       option 'boguspriv' '1'
       option 'localise_queries' '1'
       option 'local' '/lan/'
       option 'domain' 'lan'
       option 'expandhosts' '1'
       option 'authoritative' '1'
       option 'readethers' '1'
       option 'leasefile' '/tmp/dhcp.leases'
       option 'resolvfile' '/tmp/resolv.conf.auto'
       option 'filterwin2k' '1'
config 'dhcp' 'lan'
       option 'interface' 'lan'
       option 'start' '100'
       option 'limit' '150'
       option 'leasetime' '12h'
config 'dhcp' 'wan'
       option 'interface' 'wan'
config 'dhcp' 'lan2'
       option 'start' '100'
       option 'limit' '150'
       option 'leasetime' '12h'
       option 'interface' 'lan2'
config 'dhcp' 'lan3'
       option 'start' '100'
       option 'limit' '150'
       option 'leasetime' '12h'
       option 'interface' 'lan3'