mannana93
18-07-2014, 18:27
Salve a tutti avrei bisogno di un consiglio su una configurazione per open-wrt che gira su un agpf. Quello che mi servirebbe è che l'agpf facesse da client wireless e che via cavo fosse possibile accedere alla rete.
Il router wireless a cui viene collegato ha indirizzo 192.168.1.1 ed è anche il gateway, mentre l'agpf con openwrt avrà indirizzo 192.168.1.3.
Allego i vari file.
/etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option macaddr '00:xx:xx:xx:xx:xx'
option hwmode '11g'
option txpower '20'
option distance '20'
option disabled '0'
option country 'US'
config wifi-iface
option ssid 'TEST'
option device 'radio0'
option mode 'sta'
option bssid '64:xx:xx:xx:xx:xx'
option key 'test'
option encryption 'psk2+ccmp'
option wds '1'
option network 'lan wwan'
/etc/config/network
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 proto 'static'
option ipaddr '192.168.1.3'
option netmask '255.255.255.0'
option gateway '192.168.1.1'
option dns '8.8.8.8 8.8.4.4'
option stp '1'
option _orig_ifname 'eth1'
option _orig_bridge 'true'
option ifname 'eth1'
config route
option interface 'lan'
option target '0.0.0.0/0'
option gateway '192.168.1.1'
config interface 'wwan'
option proto 'dhcp'
/etc/config/dhcp
config dnsmasq
option domainneeded 1
option boguspriv 1
option filterwin2k 0 # enable for dial on demand
option localise_queries 1
option rebind_protection 1 # disable if upstream must serve RFC1918 addresses
option rebind_localhost 1 # enable for RBL checking and similar services
#list rebind_domain example.lan # whitelist RFC1918 responses for domains
option local '/lan/'
option domain 'lan'
option expandhosts 1
option nonegcache 0
option authoritative 1
option readethers 1
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
#list server '/mycompany.local/1.2.3.4'
#option nonwildcard 1
#list interface br-lan
#list notinterface lo
#list bogusnxdomain '64.94.110.11'
Il router wireless a cui viene collegato ha indirizzo 192.168.1.1 ed è anche il gateway, mentre l'agpf con openwrt avrà indirizzo 192.168.1.3.
Allego i vari file.
/etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option macaddr '00:xx:xx:xx:xx:xx'
option hwmode '11g'
option txpower '20'
option distance '20'
option disabled '0'
option country 'US'
config wifi-iface
option ssid 'TEST'
option device 'radio0'
option mode 'sta'
option bssid '64:xx:xx:xx:xx:xx'
option key 'test'
option encryption 'psk2+ccmp'
option wds '1'
option network 'lan wwan'
/etc/config/network
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 proto 'static'
option ipaddr '192.168.1.3'
option netmask '255.255.255.0'
option gateway '192.168.1.1'
option dns '8.8.8.8 8.8.4.4'
option stp '1'
option _orig_ifname 'eth1'
option _orig_bridge 'true'
option ifname 'eth1'
config route
option interface 'lan'
option target '0.0.0.0/0'
option gateway '192.168.1.1'
config interface 'wwan'
option proto 'dhcp'
/etc/config/dhcp
config dnsmasq
option domainneeded 1
option boguspriv 1
option filterwin2k 0 # enable for dial on demand
option localise_queries 1
option rebind_protection 1 # disable if upstream must serve RFC1918 addresses
option rebind_localhost 1 # enable for RBL checking and similar services
#list rebind_domain example.lan # whitelist RFC1918 responses for domains
option local '/lan/'
option domain 'lan'
option expandhosts 1
option nonegcache 0
option authoritative 1
option readethers 1
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
#list server '/mycompany.local/1.2.3.4'
#option nonwildcard 1
#list interface br-lan
#list notinterface lo
#list bogusnxdomain '64.94.110.11'