Dobra wiec co chce uzyskac. Lacze 2 sieci w mojej ma byc AP i kilka komputerow podlaczonych do switcha od AP kablem. Druga siec ma swoj internet ale jedna z osob chce miec neta odemnie. I chce miec wszystkie komputery w otoczeniu sieciowym. Tak plus minus to bedzie wygladac rysunkowo. 
Edit:
Teraz logi ale strasznie duzo tego jest.
AP
root@OpenWrt:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
root@OpenWrt:~#
root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr 94:0C:6D:AE:B6:CA
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24821 errors:0 dropped:0 overruns:0 frame:0
TX packets:344 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7957225 (7.5 MiB) TX bytes:55546 (54.2 KiB)
eth0 Link encap:Ethernet HWaddr 94:0C:6D:AE:B6:CA
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25201 errors:0 dropped:0 overruns:4 frame:0
TX packets:12494 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8428475 (8.0 MiB) TX bytes:5004066 (4.7 MiB)
Interrupt:4
eth0.1 Link encap:Ethernet HWaddr 94:0C:6D:AE:B6:CA
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25191 errors:0 dropped:0 overruns:0 frame:0
TX packets:338 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8071929 (7.6 MiB) TX bytes:55938 (54.6 KiB)
eth0.2 Link encap:Ethernet HWaddr 94:0C:6D:AE:B6:CA
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12155 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:4947085 (4.7 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
mon.wlan0 Link encap:UNSPEC HWaddr 94-0C-6D-AE-B6-CA-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1181 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:106981 (104.4 KiB) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 94:0C:6D:AE:B6:CA
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:75 errors:0 dropped:0 overruns:0 frame:0
TX packets:24730 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7914 (7.7 KiB) TX bytes:8756721 (8.3 MiB)
root@OpenWrt:~#
root@OpenWrt:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth0.1 no wireless extensions.
eth0.2 no wireless extensions.
br-lan no wireless extensions.
wlan0 IEEE 802.11bgn Mode:Master Frequency:2.432 GHz Tx-Power=20 dBm
RTS thr:off Fragment thr:off
Power Management:off
mon.wlan0 IEEE 802.11bgn Mode:Monitor Tx-Power=20 dBm
RTS thr:off Fragment thr:off
Power Management:off
root@OpenWrt:~#
root@OpenWrt:~# ps ax
PID USER VSZ STAT COMMAND
1 root 1364 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [events/0]
5 root 0 SW [khelper]
8 root 0 SW [async/mgr]
41 root 0 SW [sync_supers]
43 root 0 SW [bdi-default]
45 root 0 SW [kblockd/0]
70 root 0 SW [kswapd0]
71 root 0 SW [aio/0]
72 root 0 SW [crypto/0]
84 root 0 SW [mtdblockd]
90 root 0 SW [ar71xx-spi]
225 root 0 SW [ipolldevd]
280 root 0 SWN [jffs2_gcd_mtd3]
295 root 1364 S init
314 root 1368 S syslogd -C16
316 root 1352 S klogd
330 root 772 S /sbin/hotplug2 --override --persistent --set-worker /
458 root 0 SW [cfg80211]
497 root 1360 S udhcpc -t 0 -i eth0.2 -b -p /var/run/dhcp-eth0.2.pid
586 root 0 SW [khubd]
659 root 0 SW [phy0]
929 root 1424 S hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd
1276 root 1136 S /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
1284 root 2100 S /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -t
1318 root 1044 S vsftpd
1336 nobody 896 S /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
1345 root 2624 S N smbd -D
1347 root 2124 S nmbd -D
1360 root 1360 S watchdog -t 5 /dev/watchdog
1753 root 1192 S /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
1754 root 1364 S -ash
1762 root 1356 R ps ax
ric
Jun 1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver usbserial_generic
Jun 1 23:15:10 OpenWrt user.info kernel: usbserial: USB Serial Driver core
Jun 1 23:15:10 OpenWrt user.info kernel: Initializing USB Mass Storage driver...
Jun 1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver usb-storage
Jun 1 23:15:10 OpenWrt user.info kernel: USB Mass Storage support registered.
Jun 1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for GSM modem (1-port)
Jun 1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver option
Jun 1 23:15:10 OpenWrt user.info kernel: option: v0.7.2:USB Driver for GSM modems
Jun 1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for Sierra USB modem
Jun 1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver sierra
Jun 1 23:15:10 OpenWrt user.info kernel: sierra: v.1.3.8:USB Driver for Sierra Wireless USB modems
Jun 1 23:15:10 OpenWrt user.info kernel: fuse init (API version 7.13)
Jun 1 23:15:12 OpenWrt user.info kernel: cfg80211: Calling CRDA for country: PL
Jun 1 23:15:12 OpenWrt user.info kernel: cfg80211: Regulatory domain changed to country: PL
Jun 1 23:15:12 OpenWrt user.info kernel: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jun 1 23:15:12 OpenWrt user.info kernel: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:12 OpenWrt user.info kernel: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:12 OpenWrt user.info kernel: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:12 OpenWrt user.info kernel: (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jun 1 23:15:12 OpenWrt user.info kernel: device wlan0 entered promiscuous mode
Jun 1 23:15:12 OpenWrt user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Jun 1 23:15:16 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: authenticated
Jun 1 23:15:16 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: associated (aid 1)
Jun 1 23:15:16 OpenWrt user.info kernel: device wlan0 left promiscuous mode
Jun 1 23:15:16 OpenWrt user.info kernel: br-lan: port 2(wlan0) entering disabled state
Jun 1 23:15:17 OpenWrt user.info kernel: device wlan0 entered promiscuous mode
Jun 1 23:15:17 OpenWrt user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Jun 1 23:15:17 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: authenticated
Jun 1 23:15:17 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: associated (aid 1)
Jun 1 23:15:17 OpenWrt user.info sysinit: Loading defaults
Jun 1 23:15:17 OpenWrt user.info sysinit: Loading synflood protection
Jun 1 23:15:17 OpenWrt user.info sysinit: Adding custom chains
Jun 1 23:15:18 OpenWrt user.info sysinit: Loading zones
Jun 1 23:15:18 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: authenticated
Jun 1 23:15:18 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: associated (aid 1)
Jun 1 23:15:18 OpenWrt user.info sysinit: Loading forwarding
Jun 1 23:15:18 OpenWrt user.info sysinit: Loading redirects
Jun 1 23:15:18 OpenWrt user.info sysinit: Loading rules
Jun 1 23:15:18 OpenWrt user.info sysinit: Loading includes
Jun 1 23:15:18 OpenWrt user.info sysinit: Loading zone defaults
Jun 1 23:15:19 OpenWrt user.notice root: adding lan (br-lan) to firewall zone lan
Jun 1 23:15:19 OpenWrt authpriv.info dropbear[1276]: Running in background
Jun 1 23:15:19 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: authenticated
Jun 1 23:15:19 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 IEEE 802.11: associated (aid 1)
Jun 1 23:15:19 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: pairwise key handshake completed (RSN)
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq[1336]: started, version 2.52 cachesize 150
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq[1336]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq[1336]: using local addresses only for domain lan
Jun 1 23:15:21 OpenWrt daemon.warn dnsmasq[1336]: no servers found in /tmp/resolv.conf.auto, will retry
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq[1336]: read /etc/hosts - 1 addresses
Jun 1 23:15:23 OpenWrt user.info sysinit: setting up led WLAN
Jun 1 23:15:23 OpenWrt user.debug kernel: ar71xx-wdt: enabling watchdog timer
Jun 1 23:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 1 23:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 1 23:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 1 23:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 00:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 00:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 00:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 00:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 00:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 00:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 01:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 01:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 01:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 01:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 01:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 01:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 02:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 02:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 02:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 02:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 02:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 02:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 03:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 03:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 03:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 03:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 03:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 03:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 04:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 04:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 04:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 04:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 04:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 04:55:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 05:05:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 05:15:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 05:25:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 05:35:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 05:45:14 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 05:55:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 06:05:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 06:15:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 06:25:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 06:35:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 06:45:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 06:55:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 07:05:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 07:15:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 07:25:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 07:35:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 07:45:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 07:55:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 08:05:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 08:15:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 08:25:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 08:35:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 08:45:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 08:55:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 09:05:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 09:13:57 OpenWrt authpriv.info dropbear[1741]: Child connection from 192.168.1.7:49475
Jun 2 09:14:06 OpenWrt authpriv.notice dropbear[1741]: password auth succeeded for 'root' from 192.168.1.7:49475
Jun 2 09:14:32 OpenWrt authpriv.info dropbear[1741]: exit after auth (root): Exited normally
Jun 2 09:15:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 09:22:06 OpenWrt authpriv.info dropbear[1753]: Child connection from 192.168.1.7:49513
Jun 2 09:22:11 OpenWrt authpriv.notice dropbear[1753]: password auth succeeded for 'root' from 192.168.1.7:49513
Jun 2 09:25:15 OpenWrt daemon.info hostapd: wlan0: STA 94:0c:6d:ee:61:70 WPA: group key handshake completed (RSN)
Jun 2 09:25:18 OpenWrt authpriv.info dropbear[1753]: exit after auth (root): Exited normally
Jun 2 09:25:31 OpenWrt authpriv.info dropbear[1766]: Child connection from 192.168.1.7:49514
Jun 2 09:25:36 OpenWrt authpriv.notice dropbear[1766]: password auth succeeded for 'root' from 192.168.1.7:49514
root@OpenWrt:~#
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.1'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.1.1'
option 'netmask' '255.255.255.0'
config 'interface' 'wan'
option 'ifname' 'eth0.2'
option 'proto' 'dhcp'
config 'interface' '3g'
option 'device' '/dev/ttyUSB0'
option 'apn' 'internet'
option 'service' 'umts'
option 'proto' '3g'
option 'hotplug' 1
option 'pincode' '0000'
config 'switch'
option 'name' 'rtl8366rb'
option 'reset' '1'
option 'enable_vlan' '1'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '1'
option 'ports' '1 2 3 4 5t'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '2'
option 'ports' '0 5t'
root@OpenWrt:~#
root@OpenWrt:~# cat /etc/config/wireles
cat: can't open '/etc/config/wireles': No such file or directory
root@OpenWrt:~#
root@OpenWrt:~# cat /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
option mtu_fix 1
config zone
option name 3g
option input REJECT
option output ACCEPT
option forward REJECT
option masq 1
config forwarding
option src lan
option dest 3g
config forwarding
option src lan
option dest wan
# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
option src wan
option proto udp
option dest_port 68
option target ACCEPT
#Allow ping
config rule
option src wan
option proto icmp
option icmp_type echo-request
option target ACCEPT
# include a file with users custom iptables rules
config include
option path /etc/firewall.user
### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
# option src lan
# option src_ip 192.168.45.2
# option dest wan
# option proto tcp
# option target REJECT
# block a specific mac on wan
#config rule
# option dest wan
# option src_mac 00:11:22:33:44:66
# option target REJECT
# block incoming ICMP traffic on a zone
#config rule
# option src lan
# option proto ICMP
# option target DROP
# port redirect port coming in on wan to lan
#config redirect
# option src wan
# option src_dport 80
# option dest lan
# option dest_ip 192.168.16.235
# option dest_port 80
# option proto tcp
### FULL CONFIG SECTIONS
#config rule
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 80
# option dest wan
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
# option target REJECT
#config redirect
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 1024
# option src_dport 80
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
root@OpenWrt:~#
LOGI z Clienta
root@OpenWrt:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.2
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0.2
root@OpenWrt:~#
root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr 94:0C:6D:EE:61:70
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1897 errors:0 dropped:0 overruns:0 frame:0
TX packets:256 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:333133 (325.3 KiB) TX bytes:49146 (47.9 KiB)
eth0 Link encap:Ethernet HWaddr 94:0C:6D:EE:61:70
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2522 errors:0 dropped:0 overruns:0 frame:0
TX packets:449 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:500741 (489.0 KiB) TX bytes:60045 (58.6 KiB)
Interrupt:4
eth0.1 Link encap:Ethernet HWaddr 94:0C:6D:EE:61:70
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1897 errors:0 dropped:0 overruns:0 frame:0
TX packets:256 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:340721 (332.7 KiB) TX bytes:50170 (48.9 KiB)
eth0.2 Link encap:Ethernet HWaddr 94:0C:6D:EE:61:70
inet addr:192.168.1.60 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:505 errors:0 dropped:0 overruns:0 frame:0
TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:97877 (95.5 KiB) TX bytes:8832 (8.6 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:132 errors:0 dropped:0 overruns:0 frame:0
TX packets:132 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12226 (11.9 KiB) TX bytes:12226 (11.9 KiB)
wlan0 Link encap:Ethernet HWaddr 94:0C:6D:EE:61:70
inet addr:192.168.1.60 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25248 errors:0 dropped:0 overruns:0 frame:0
TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8454808 (8.0 MiB) TX bytes:9959 (9.7 KiB)
root@OpenWrt:~#
root@OpenWrt:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth0.1 no wireless extensions.
eth0.2 no wireless extensions.
br-lan no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"OpenWrt"
Mode:Managed Frequency:2.432 GHz Access Point: 94:0C:6D:AE:B6:CA
Bit Rate=1 Mb/s Tx-Power=20 dBm
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=64/70 Signal level=-46 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
root@OpenWrt:~#
root@OpenWrt:~# ps ax
PID USER VSZ STAT COMMAND
1 root 1364 S init
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [events/0]
5 root 0 SW [khelper]
8 root 0 SW [async/mgr]
41 root 0 SW [sync_supers]
43 root 0 SW [bdi-default]
45 root 0 SW [kblockd/0]
70 root 0 SW [kswapd0]
71 root 0 SW [aio/0]
72 root 0 SW [crypto/0]
84 root 0 SW [mtdblockd]
90 root 0 SW [ar71xx-spi]
225 root 0 SW [ipolldevd]
280 root 0 SWN [jffs2_gcd_mtd3]
295 root 1364 S init
314 root 1368 S syslogd -C16
316 root 1352 S klogd
330 root 772 S /sbin/hotplug2 --override --persistent --set-worker /
464 root 0 SW [cfg80211]
568 root 0 SW [khubd]
725 root 0 SW [phy0]
947 root 1408 S wpa_supplicant -B -P /var/run/wifi-wlan0.pid -D wext
1304 root 1136 S /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
1312 root 2100 S /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -t
1316 root 1044 S vsftpd
1362 nobody 900 S /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S /lan/ -
1371 root 2624 S N smbd -D
1373 root 2124 S nmbd -D
1386 root 1360 S watchdog -t 5 /dev/watchdog
1430 root 1192 S /usr/sbin/dropbear -p 22 -P /var/run/dropbear.1.pid
1431 root 1364 S -ash
1439 root 1356 R ps ax
root@OpenWrt:~#
Jun 1 23:15:06 OpenWrt user.debug kernel: phy0: Selected rate control algorithm 'minstrel_ht'
Jun 1 23:15:06 OpenWrt user.info kernel: phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a2 mem=0xb80c0000, irq=2
Jun 1 23:15:07 OpenWrt user.info kernel: PPP generic driver version 2.4.2
Jun 1 23:15:08 OpenWrt user.info kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jun 1 23:15:08 OpenWrt user.info kernel: NET: Registered protocol family 24
Jun 1 23:15:09 OpenWrt user.info kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Jun 1 23:15:09 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
Jun 1 23:15:09 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
Jun 1 23:15:09 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
Jun 1 23:15:09 OpenWrt user.info kernel: ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
Jun 1 23:15:09 OpenWrt user.info kernel: usb usb1: configuration #1 chosen from 1 choice
Jun 1 23:15:09 OpenWrt user.info kernel: hub 1-0:1.0: USB hub found
Jun 1 23:15:09 OpenWrt user.info kernel: hub 1-0:1.0: 1 port detected
Jun 1 23:15:09 OpenWrt user.warn kernel: nf_conntrack version 0.5.0 (460 buckets, 1840 max)
Jun 1 23:15:09 OpenWrt user.warn kernel: CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
Jun 1 23:15:09 OpenWrt user.warn kernel: nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
Jun 1 23:15:09 OpenWrt user.warn kernel: sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
Jun 1 23:15:09 OpenWrt user.notice root: Przelaczenie modemu
Jun 1 23:15:09 OpenWrt user.notice root: Autostart polaczenia 3G
Jun 1 23:15:10 OpenWrt user.notice root: Przelaczenie modemu
Jun 1 23:15:10 OpenWrt user.notice root: Autostart polaczenia 3G
Jun 1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver usbserial
Jun 1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for generic
Jun 1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver usbserial_generic
Jun 1 23:15:10 OpenWrt user.info kernel: usbserial: USB Serial Driver core
Jun 1 23:15:10 OpenWrt user.info kernel: Initializing USB Mass Storage driver...
Jun 1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver usb-storage
Jun 1 23:15:10 OpenWrt user.info kernel: USB Mass Storage support registered.
Jun 1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for GSM modem (1-port)
Jun 1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver option
Jun 1 23:15:10 OpenWrt user.info kernel: option: v0.7.2:USB Driver for GSM modems
Jun 1 23:15:10 OpenWrt user.info kernel: USB Serial support registered for Sierra USB modem
Jun 1 23:15:10 OpenWrt user.info kernel: usbcore: registered new interface driver sierra
Jun 1 23:15:10 OpenWrt user.info kernel: sierra: v.1.3.8:USB Driver for Sierra Wireless USB modems
Jun 1 23:15:11 OpenWrt user.info kernel: fuse init (API version 7.13)
Jun 1 23:15:12 OpenWrt user.info kernel: cfg80211: Calling CRDA for country: PL
Jun 1 23:15:12 OpenWrt user.info kernel: cfg80211: Regulatory domain changed to country: PL
Jun 1 23:15:12 OpenWrt user.info kernel: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jun 1 23:15:12 OpenWrt user.info kernel: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:12 OpenWrt user.info kernel: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:12 OpenWrt user.info kernel: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:12 OpenWrt user.info kernel: (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jun 1 23:15:13 OpenWrt user.info sysinit: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Jun 1 23:15:13 OpenWrt user.info sysinit: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Jun 1 23:15:14 OpenWrt user.info sysinit: Loading defaults
Jun 1 23:15:14 OpenWrt user.info sysinit: Loading synflood protection
Jun 1 23:15:15 OpenWrt user.info sysinit: Adding custom chains
Jun 1 23:15:15 OpenWrt user.notice rdate: Failed to sync with ptbtime3.ptb.de
Jun 1 23:15:15 OpenWrt user.info sysinit: Loading zones
Jun 1 23:15:16 OpenWrt user.info sysinit: Loading forwarding
Jun 1 23:15:16 OpenWrt user.info sysinit: Loading redirects
Jun 1 23:15:16 OpenWrt user.info sysinit: Loading rules
Jun 1 23:15:16 OpenWrt user.info sysinit: Loading includes
Jun 1 23:15:16 OpenWrt user.info sysinit: Loading zone defaults
Jun 1 23:15:16 OpenWrt user.notice rdate: Failed to sync with ptbtime2.ptb.de
Jun 1 23:15:16 OpenWrt user.notice root: adding lan (br-lan) to firewall zone lan
Jun 1 23:15:16 OpenWrt user.notice root: adding wan (wlan0) to firewall zone wan
Jun 1 23:15:17 OpenWrt authpriv.info dropbear[1304]: Running in background
Jun 1 23:15:18 OpenWrt user.debug kernel: wlan0: authenticate with 94:0c:6d:ae:b6:ca (try 1)
Jun 1 23:15:18 OpenWrt user.debug kernel: wlan0: authenticated
Jun 1 23:15:18 OpenWrt user.debug kernel: wlan0: associate with 94:0c:6d:ae:b6:ca (try 1)
Jun 1 23:15:18 OpenWrt user.debug kernel: wlan0: RX AssocResp from 94:0c:6d:ae:b6:ca (capab=0x411 status=0 aid=1)
Jun 1 23:15:18 OpenWrt user.debug kernel: wlan0: associated
Jun 1 23:15:18 OpenWrt user.debug kernel: wlan0: disassociated from 94:0c:6d:ae:b6:ca (Reason: 7)
Jun 1 23:15:18 OpenWrt user.debug kernel: wlan0: deauthenticating from 94:0c:6d:ae:b6:ca by local choice (reason=3)
Jun 1 23:15:18 OpenWrt user.info kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun 1 23:15:18 OpenWrt user.info kernel: cfg80211: Calling CRDA for country: PL
Jun 1 23:15:18 OpenWrt user.info kernel: cfg80211: Regulatory domain changed to country: PL
Jun 1 23:15:18 OpenWrt user.info kernel: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jun 1 23:15:18 OpenWrt user.info kernel: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:18 OpenWrt user.info kernel: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:18 OpenWrt user.info kernel: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:18 OpenWrt user.info kernel: (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jun 1 23:15:19 OpenWrt user.debug kernel: wlan0: authenticate with 94:0c:6d:ae:b6:ca (try 1)
Jun 1 23:15:19 OpenWrt user.debug kernel: wlan0: authenticated
Jun 1 23:15:19 OpenWrt user.debug kernel: wlan0: associate with 94:0c:6d:ae:b6:ca (try 1)
Jun 1 23:15:19 OpenWrt user.debug kernel: wlan0: RX AssocResp from 94:0c:6d:ae:b6:ca (capab=0x411 status=0 aid=1)
Jun 1 23:15:19 OpenWrt user.debug kernel: wlan0: associated
Jun 1 23:15:19 OpenWrt user.debug kernel: wlan0: disassociated from 94:0c:6d:ae:b6:ca (Reason: 7)
Jun 1 23:15:19 OpenWrt user.debug kernel: wlan0: deauthenticating from 94:0c:6d:ae:b6:ca by local choice (reason=3)
Jun 1 23:15:19 OpenWrt user.info kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun 1 23:15:19 OpenWrt user.info kernel: cfg80211: Calling CRDA for country: PL
Jun 1 23:15:20 OpenWrt user.info kernel: cfg80211: Regulatory domain changed to country: PL
Jun 1 23:15:20 OpenWrt user.info kernel: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jun 1 23:15:20 OpenWrt user.info kernel: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:20 OpenWrt user.info kernel: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:20 OpenWrt user.info kernel: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:20 OpenWrt user.info kernel: (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jun 1 23:15:20 OpenWrt user.debug kernel: wlan0: authenticate with 94:0c:6d:ae:b6:ca (try 1)
Jun 1 23:15:20 OpenWrt user.debug kernel: wlan0: authenticated
Jun 1 23:15:20 OpenWrt user.debug kernel: wlan0: associate with 94:0c:6d:ae:b6:ca (try 1)
Jun 1 23:15:20 OpenWrt user.debug kernel: wlan0: RX AssocResp from 94:0c:6d:ae:b6:ca (capab=0x411 status=0 aid=1)
Jun 1 23:15:20 OpenWrt user.debug kernel: wlan0: associated
Jun 1 23:15:20 OpenWrt user.debug kernel: wlan0: disassociated from 94:0c:6d:ae:b6:ca (Reason: 7)
Jun 1 23:15:20 OpenWrt user.debug kernel: wlan0: deauthenticating from 94:0c:6d:ae:b6:ca by local choice (reason=3)
Jun 1 23:15:20 OpenWrt user.info kernel: cfg80211: Calling CRDA to update world regulatory domain
Jun 1 23:15:20 OpenWrt user.info kernel: cfg80211: Calling CRDA for country: PL
Jun 1 23:15:21 OpenWrt user.info kernel: cfg80211: Regulatory domain changed to country: PL
Jun 1 23:15:21 OpenWrt user.info kernel: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jun 1 23:15:21 OpenWrt user.info kernel: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:21 OpenWrt user.info kernel: (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:21 OpenWrt user.info kernel: (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jun 1 23:15:21 OpenWrt user.info kernel: (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: started, version 2.52 cachesize 150
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq-dhcp[1362]: DHCP, IP range 192.168.2.100 -- 192.168.2.250, lease time 12h
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: using local addresses only for domain lan
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: reading /tmp/resolv.conf.auto
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: using nameserver 192.168.1.1#53
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: using local addresses only for domain lan
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq[1362]: read /etc/hosts - 1 addresses
Jun 1 23:15:21 OpenWrt daemon.info dnsmasq-dhcp[1362]: read /etc/ethers - 0 addresses
Jun 1 23:15:22 OpenWrt user.debug kernel: wlan0: authenticate with 94:0c:6d:ae:b6:ca (try 1)
Jun 1 23:15:22 OpenWrt user.debug kernel: wlan0: authenticated
Jun 1 23:15:22 OpenWrt user.debug kernel: wlan0: associate with 94:0c:6d:ae:b6:ca (try 1)
Jun 1 23:15:22 OpenWrt user.debug kernel: wlan0: RX AssocResp from 94:0c:6d:ae:b6:ca (capab=0x411 status=0 aid=1)
Jun 1 23:15:22 OpenWrt user.debug kernel: wlan0: associated
Jun 1 23:15:24 OpenWrt user.info sysinit: setting up led WLAN
Jun 1 23:15:24 OpenWrt user.debug kernel: ar71xx-wdt: enabling watchdog timer
Jun 1 23:15:25 OpenWrt user.notice rdate: Failed to sync with vega.cbk.poznan.pl
Jun 1 23:15:25 OpenWrt user.notice rdate: Failed to sync with ptbtime3.ptb.de
Jun 1 23:15:26 OpenWrt user.notice rdate: Failed to sync with cudns.cit.cornell.edu
Jun 1 23:15:33 OpenWrt user.info sysinit: 0.openwrt.pool.ntp.org: Unknown host
Jun 1 23:15:35 OpenWrt user.notice rdate: Failed to sync with vega.cbk.poznan.pl
Jun 1 23:15:35 OpenWrt user.notice rdate: Failed to sync with vega.cbk.poznan.pl
Jun 1 23:15:36 OpenWrt user.notice rdate: Failed to sync with ptbtime1.ptb.de
Jun 1 23:15:45 OpenWrt user.notice rdate: Failed to sync with vega.cbk.poznan.pl
Jun 1 23:16:03 OpenWrt user.info sysinit: 1.openwrt.pool.ntp.org: Unknown host
Jun 1 23:16:33 OpenWrt user.info sysinit: 2.openwrt.pool.ntp.org: Unknown host
Jun 1 23:17:03 OpenWrt user.info sysinit: 3.openwrt.pool.ntp.org: Unknown host
Jun 1 23:17:13 OpenWrt user.notice rdate: Failed to sync with ptbtime2.ptb.de
Jun 1 23:17:23 OpenWrt user.notice rdate: Failed to sync with ptbtime2.ptb.de
Jun 1 23:17:33 OpenWrt user.notice rdate: Failed to sync with cudns.cit.cornell.edu
Jun 2 09:30:04 OpenWrt authpriv.info dropbear[1430]: Child connection from 192.168.2.7:49524
Jun 2 09:30:11 OpenWrt authpriv.notice dropbear[1430]: password auth succeeded for 'root' from 192.168.2.7:49524
root@OpenWrt:~#
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.1'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.2.1'
option 'netmask' '255.255.255.0'
config 'interface' 'wan'
option 'ifname' 'eth0.2'
option 'proto' 'static'
option 'ipaddr' '192.168.1.60'
option 'netmask' '255.255.255.0'
option 'gateway' '192.168.1.1'
option 'dns' '192.168.1.1'
config 'interface' '3g'
option 'device' '/dev/ttyUSB0'
option 'apn' 'internet'
option 'service' 'umts'
option 'proto' '3g'
option 'hotplug' 1
option 'pincode' '0000'
config 'switch'
option 'name' 'rtl8366rb'
option 'reset' '1'
option 'enable_vlan' '1'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '1'
option 'ports' '1 2 3 4 5t'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '2'
option 'ports' '0 5t'
root@OpenWrt:~#
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device radio0
option type mac80211
option channel 5
option macaddr 94:0c:6d:ee:61:70
option hwmode 11ng
option htmode HT20
list ht_capab HT40+
list ht_capab HT40-
list ht_capab SHORT-GI-40
list ht_capab DSSS_CCK-40
option disabled 0
option country PL
config wifi-iface
option device radio0
option network wan
option mode sta
option ssid OpenWrt
option encryption psk2
option key 1234567890
root@OpenWrt:~#
root@OpenWrt:~# cat /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
option mtu_fix 1
config zone
option name 3g
option input REJECT
option output ACCEPT
option forward REJECT
option masq 1
config forwarding
option src lan
option dest 3g
config forwarding
option src lan
option dest wan
# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
option src wan
option proto udp
option dest_port 68
option target ACCEPT
#Allow ping
config rule
option src wan
option proto icmp
option icmp_type echo-request
option target ACCEPT
# include a file with users custom iptables rules
config include
option path /etc/firewall.user
### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
# option src lan
# option src_ip 192.168.45.2
# option dest wan
# option proto tcp
# option target REJECT
# block a specific mac on wan
#config rule
# option dest wan
# option src_mac 00:11:22:33:44:66
# option target REJECT
# block incoming ICMP traffic on a zone
#config rule
# option src lan
# option proto ICMP
# option target DROP
# port redirect port coming in on wan to lan
#config redirect
# option src wan
# option src_dport 80
# option dest lan
# option dest_ip 192.168.16.235
# option dest_port 80
# option proto tcp
### FULL CONFIG SECTIONS
#config rule
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 80
# option dest wan
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
# option target REJECT
#config redirect
# option src lan
# option src_ip 192.168.45.2
# option src_mac 00:11:22:33:44:55
# option src_port 1024
# option src_dport 80
# option dest_ip 194.25.2.129
# option dest_port 120
# option proto tcp
root@OpenWrt:~#