Ну и, на всякий случай, вывод некоторых команд.
ip addr (Arch):
Код: Выделить всё
3: wlp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:25:d3:85:b5:5e brd ff:ff:ff:ff:ff:ff
inet 10.42.0.1/24 brd 10.42.0.255 scope global wlp4s0
inet6 fe80::225:d3ff:fe85:b55e/64 scope link
valid_lft forever preferred_lft forever
ip addr (Ubuntu):
Код: Выделить всё
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:25:d3:85:b5:5e brd ff:ff:ff:ff:ff:ff
inet 10.42.0.1/24 brd 10.42.0.255 scope global wlan0
inet6 fe80::225:d3ff:fe85:b55e/64 scope link
valid_lft forever preferred_lft forever
iwconfig (Arch):
Код: Выделить всё
wlp4s0 IEEE 802.11bgn ESSID:"440"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: 5E:F8:FB:B6:D0:F4
Tx-Power=14 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on
iwconfig (Ubuntu):
Код: Выделить всё
wlan0 IEEE 802.11bgn ESSID:"440"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: CE:77:F8:70:3D:ED
Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
iptables (Arch):
Spoiler
Код: Выделить всё
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere 10.42.0.0/24 state RELATED,ESTABLISHED
ACCEPT all -- 10.42.0.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
iptables (Ubuntu):
Spoiler
Код: Выделить всё
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere 10.42.0.0/24 state RELATED,ESTABLISHED
ACCEPT all -- 10.42.0.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
И DHCP запущены так (Arch):
Код: Выделить всё
root 640 304 0 00:00 ? 00:00:00 /usr/sbin/dhclient -d -sf /usr/lib/networkmanager/nm-dhcp-client.action -pf /var/run/dhclient-enp3s0.pid -lf /var/lib/NetworkManager/dhclient-a4699c98-be88-48d3-a1cb-85124445d531-enp3s0.lease -cf /var/lib/NetworkManager/dhclient-enp3s0.conf enp3s0
nobody 1358 304 0 00:37 ? 00:00:00 /usr/bin/dnsmasq --conf-file --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=10.42.0.1 --dhcp-range=10.42.0.10,10.42.0.100,60m --dhcp-option=option:router,10.42.0.1 --dhcp-lease-max=50 --pid-file=/var/run/nm-dnsmasq-wlp4s0.pid
Ubuntu:
Код: Выделить всё
root 1421 965 0 16:15 ? 00:00:00 /sbin/dhclient -d -4 -sf /usr/lib/NetworkManager/nm-dhcp-client.action -pf /var/run/sendsigs.omit.d/network-manager.dhclient-eth0.pid -lf /var/lib/dhcp/dhclient-b6aa9456-a790-4551-a704-d2477472d31b-eth0.lease -cf /var/run/nm-dhclient-eth0.conf eth0
nobody 2493 965 0 16:17 ? 00:00:00 /usr/sbin/dnsmasq --conf-file --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=10.42.0.1 --dhcp-range=10.42.0.10,10.42.0.100,60m --dhcp-option=option:router,10.42.0.1 --dhcp-lease-max=50 --pid-file=/var/run/nm-dnsmasq-wlan0.pid