Last
update:
2019/03/05
10:03
accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785
https://wiki.odroid.com/ Printed on 2023/05/21 14:24
tcp6
0
0
:::22 :::*
LISTEN 677/sshd
tcp6
0
0
::1:631 :::*
LISTEN 2734/cupsd
Copy dnsmasq configuration file to get a backup and then make a new one.
target
root@odroid:~# mv /etc/dnsmasq.conf /etc/dnsmasq.conf.org
root@odroid:~# vi /etc/dnsmasq.conf
dnsmasq.conf
domain-needed
bogus-priv
no-resolv
no-poll
server=/example.com/192.168.1.5
server=8.8.8.8
server=8.8.4.4
local=/example.com/
address=/doubleclick.net/127.0.0.1
no-hosts
#addn-hosts=/etc/dnsmasq.d/hosts.conf
expand-hosts
domain=example.com
dhcp-range=192.168.1.20,192.168.1.50,72h
dhcp-range=tftp,192.168.1.250,192.168.1.254
dhcp-option=option:router,192.168.1.1
dhcp-option=option:ntp-server,192.168.1.5
dhcp-option=19,
0
# ip-forwarding off
dhcp-option=44,192.168.1.5 # set netbios-over-TCP/IP aka WINS
dhcp-option=45,192.168.1.5 # netbios datagram distribution server
dhcp-option=46,8 # netbios node type
Note: You can extend the dhcp-range or change the IP address in the configuration.
Step 3: Setup iptables to forward the internet traffic from Ethernet to
wireless LAN
Next, make port forwarding enabled automatically on boot up.