Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@raspberrypi:/home/pi# ifconfig
- eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 11.0.0.1 netmask 255.255.255.0 broadcast 11.0.0.255
- inet6 fe80::ba27:ebff:fe59:1d86 prefixlen 64 scopeid 0x20<link>
- ether b8:27:eb:59:1d:86 txqueuelen 1000 (Ethernet)
- RX packets 2206 bytes 156484 (152.8 KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 1362 bytes 137933 (134.7 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
- inet 127.0.0.1 netmask 255.0.0.0
- inet6 ::1 prefixlen 128 scopeid 0x10<host>
- loop txqueuelen 1 (Local Loopback)
- RX packets 272 bytes 21194 (20.6 KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 272 bytes 21194 (20.6 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 192.168.1.135 netmask 255.255.255.0 broadcast 192.168.1.255
- inet6 fe80::ba27:ebff:fe0c:48d3 prefixlen 64 scopeid 0x20<link>
- inet6 2602:306:cd0b:44b0:ba27:ebff:fe0c:48d3 prefixlen 64 scopeid 0x0<global>
- ether b8:27:eb:0c:48:d3 txqueuelen 1000 (Ethernet)
- RX packets 1076 bytes 110201 (107.6 KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 920 bytes 179937 (175.7 KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- root@raspberrypi:/home/pi# iptables -L
- Chain INPUT (policy ACCEPT)
- target prot opt source destination
- Chain FORWARD (policy ACCEPT)
- target prot opt source destination
- Chain OUTPUT (policy ACCEPT)
- target prot opt source destination
- root@raspberrypi:/home/pi#
- root@raspberrypi:/home/pi# iptables -L -t nat
- Chain PREROUTING (policy ACCEPT)
- target prot opt source destination
- Chain INPUT (policy ACCEPT)
- target prot opt source destination
- Chain OUTPUT (policy ACCEPT)
- target prot opt source destination
- Chain POSTROUTING (policy ACCEPT)
- target prot opt source destination
- MASQUERADE all -- anywhere anywhere
- root@raspberrypi:/home/pi# sysctl -a | grep forw
- net.ipv4.conf.all.forwarding = 1
- net.ipv4.conf.all.mc_forwarding = 0
- net.ipv4.conf.default.forwarding = 1
- net.ipv4.conf.default.mc_forwarding = 0
- net.ipv4.conf.eth0.forwarding = 1
- net.ipv4.conf.eth0.mc_forwarding = 0
- net.ipv4.conf.lo.forwarding = 1
- net.ipv4.conf.lo.mc_forwarding = 0
- net.ipv4.conf.wlan0.forwarding = 1
- net.ipv4.conf.wlan0.mc_forwarding = 0
- net.ipv4.ip_forward = 1
- net.ipv4.ip_forward_use_pmtu = 0
- sysctl: net.ipv6.conf.all.forwarding = 0
- net.ipv6.conf.all.mc_forwarding = 0
- reading key "net.ipv6.conf.all.stable_secret"
- sysctl: net.ipv6.conf.default.forwarding = 0
- net.ipv6.conf.default.mc_forwarding = 0
- reading key "net.ipv6.conf.default.stable_secret"
- sysctl: net.ipv6.conf.eth0.forwarding = 0
- net.ipv6.conf.eth0.mc_forwarding = 0
- reading key "net.ipv6.conf.eth0.stable_secret"
- sysctl: reading key "net.ipv6.conf.lo.stable_secret"
- net.ipv6.conf.lo.forwarding = 0
- net.ipv6.conf.lo.mc_forwarding = 0
- sysctl: reading key "net.ipv6.conf.wlan0.stable_secret"
- net.ipv6.conf.wlan0.forwarding = 0
- net.ipv6.conf.wlan0.mc_forwarding = 0
- root@raspberrypi:/home/pi# netstat -rn
- Kernel IP routing table
- Destination Gateway Genmask Flags MSS Window irtt Iface
- 0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
- 11.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
- 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
- root@raspberrypi:/home/pi#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement