Two modes of OpenWrt: Bridge mode and route mode 1, bridging mode (bridged AP mode): Bridge through OpenWrt device, A wireless device connected to the OPENWRT is assigned an IP address from the route in the 192.168.1.0 segment of this network segment, so all the devices in this segment are interconnected. Bridging configuration for OPENWRT devices: [plain] root@openwrt:~# cat/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 ifname ' eth0 '   ; Option type ' bridge ' option proto ' static ' &N Bsp option ipaddr ' 192.168.1.129 ' option netmask ' 255.255.255.0 ' &NBSP ; Option Gateway ' 192.168.1.1 ' option DNS ' 202.101.172.46 ' root@openwrt:~# cat/etc/config/wireless config wifi-device radio0 option Typ E mac80211 option channel 11 OPT Ion Hwmode 11ng option path ' Platform/ar933x_wmac ' & nbsp Option Htmode HT20 list ht_capab short-gi-20 List ht_capab short-gi-40 list ht_capab RX-STBC1 &NB Sp list ht_capab dsss_cck-40 # REMOVE this line to Enab LE WIFI: # option disabled 1 config wifi-iface option device radio0 option network lan &NBSP ;   Option mode AP option SSID OPENWRT &NB Sp option Encryption none root@openwrt:~# cat/etc/config/firewall config defaults & nbsp option Syn_flood 1 option input accept option output &NBS P ACCEPT option forward reject # Uncomment this Line to disable IPv6 rules # option Disable_ipv6 1 config zo NE option name LAN &NBSP ; Option network ' LAN ' option input &NBSP ; accept option output ACCEPT &nbs P option forward reject config zone option name WAN Option Network ' WAN ' option input &NBSP ; reject option output ACCEPT &nbs P option forward reject OPT Ion MASQ 1 option Mtu_fix &NBSP ; 1 config forwarding option src &N Bsp lan option dest WAN &NBSP ; # We need to accept UDP packets on port # see https://dev.openwrt.org/ticket/4108 config rule &n Bsp option name allow-dhcp-renew &N Bsp option src wan option Proto &nbs P  UDP option Dest_port 68 &N Bsp option target ACCEPT OPT Ion family IPv4 # allow IPv4 Ping config rule Option name allow-ping O PtionSRC wan option proto &NBS P  ICMP option Icmp_type echo-request   ; option family IPv4 Optio N Target ACCEPT # allow DHCPV6 replies # See Https://dev.ope nwrt.org/ticket/10381 Config rule option name Allow-dhcpv6 option src wan &NB Sp option Proto  UDP O Ption src_ip FE80::/10 option Src_port 547 option dest_ip  FE80::/10 &NB Sp option Dest_port 546 option family &NBS P IPv6 option target ACCEPT &NBSP ; # Allow essential incoming IPv6 ICMP Traffic Config rule option name &NB Sp allow-icmpv6-input option src & nbsp wan option proto icmp &NBS P List Icmp_type echo-request list Icmp_type &NB Sp echo-reply list Icmp_type destinaTion-unreachable list Icmp_type packet-too-big list Icmp_type time-exceeded &N Bsp List Icmp_type bad-header list Icmp_type &NBSP ; unknown-header-type list Icmp_type &NBS P;router-solicitation list Icmp_type neighbour-solici Tation list Icmp_type router-advertisement &NB Sp List Icmp_type neighbour-advertisement option limit 1000/sec option family &NB Sp &NBsp IPv6 option target ACCEPT &NBSP ; # Allow essential forwarded IPv6 ICMP Traffic Config rule option name &N Bsp Allow-icmpv6-forward option src wan option dest * option Proto icmp List Icmp_type echo-request list Icmp_type &N Bsp echo-reply list Icmp_type Destination-unreachable list Icmp_type packet-too-big   List Icmp_type time-exceeded LIS T Icmp_type bad-header list Icmp_type & nbsp unknown-header-type option limit 1000/sec option family IPv6
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.