====== Docker - Gluetun - Network Info ======
docker exec gluetun route -n
returns:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.179.0.1 128.0.0.0 UG 0 0 0 tun0
0.0.0.0 172.18.0.1 0.0.0.0 UG 0 0 0 eth0
10.179.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tun0
128.0.0.0 10.179.0.1 128.0.0.0 UG 0 0 0 tun0
172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
213.21.226.42 172.18.0.1 255.255.255.255 UGH 0 0 0 eth0
----
docker exec gluetun iptables -S
returns:
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT DROP
-A INPUT -i lo -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -d 172.18.0.0/16 -i eth0 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -s 172.18.0.2/32 -d 172.18.0.0/16 -o eth0 -j ACCEPT
-A OUTPUT -d 213.21.226.42/32 -o eth0 -p udp -m udp --dport 1195 -j ACCEPT
-A OUTPUT -o tun0 -j ACCEPT
----
docker exec gluetun ifconfig
returns:
eth0 Link encap:Ethernet HWaddr 82:1D:94:7C:7E:52
inet addr:172.18.0.2 Bcast:172.18.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48376 errors:0 dropped:0 overruns:0 frame:0
TX packets:62843 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:33960386 (32.3 MiB) TX bytes:15871868 (15.1 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:61788 errors:0 dropped:0 overruns:0 frame:0
TX packets:61788 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6698868 (6.3 MiB) TX bytes:6698868 (6.3 MiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.179.0.53 P-t-P:10.179.0.53 Mask:255.255.0.0
inet6 addr: fe80::d01a:2981:6a12:dbb9/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:46871 errors:0 dropped:0 overruns:0 frame:0
TX packets:61320 errors:0 dropped:255 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:30543767 (29.1 MiB) TX bytes:11428913 (10.8 MiB)
----
ping 213.21.226.42
returns:
PING 213.21.226.42 (213.21.226.42) 56(84) bytes of data.
64 bytes from 213.21.226.42: icmp_seq=1 ttl=54 time=22.2 ms
64 bytes from 213.21.226.42: icmp_seq=2 ttl=54 time=22.1 ms
...
----
/sbin/route -n
returns:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 enp19s0f0
172.17.0.0 0.0.0.0 255.255.255.0 U 0 0 0 docker0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-5d5effd41780
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 enp19s0f0
----