{"action":"opened","issue":{"url":"https://api.github.com/repos/kylemanna/docker-openvpn/issues/100","labels_url":"https://api.github.com/repos/kylemanna/docker-openvpn/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/kylemanna/docker-openvpn/issues/100/comments","events_url":"https://api.github.com/repos/kylemanna/docker-openvpn/issues/100/events","html_url":"https://github.com/kylemanna/docker-openvpn/issues/100","id":129452390,"number":100,"title":"Not listening on ethernet port","user":{"login":"kaihendry","id":765871,"avatar_url":"https://avatars.githubusercontent.com/u/765871?v=3","gravatar_id":"","url":"https://api.github.com/users/kaihendry","html_url":"https://github.com/kaihendry","followers_url":"https://api.github.com/users/kaihendry/followers","following_url":"https://api.github.com/users/kaihendry/following{/other_user}","gists_url":"https://api.github.com/users/kaihendry/gists{/gist_id}","starred_url":"https://api.github.com/users/kaihendry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaihendry/subscriptions","organizations_url":"https://api.github.com/users/kaihendry/orgs","repos_url":"https://api.github.com/users/kaihendry/repos","events_url":"https://api.github.com/users/kaihendry/events{/privacy}","received_events_url":"https://api.github.com/users/kaihendry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-28T13:24:33Z","updated_at":"2016-01-28T13:24:33Z","closed_at":null,"body":"I have an issue where is works from localhost:943, but not from 192.168.1.4:943.\r\n\r\n```\r\n[hendry@bible system]$ cat docker-openvpn@.service\r\n[Unit]\r\nDescription=OpenVPN Docker Container\r\nDocumentation=https://github.com/kylemanna/docker-openvpn\r\nAfter=network.target docker.socket\r\nRequires=docker.socket\r\n\r\n[Service]\r\nRestartSec=10\r\nRestart=always\r\n\r\nEnvironment=\"NAME=ovpn-%i\"\r\nEnvironment=\"DATA_VOL=ovpn-data-%i\"\r\nEnvironment=\"IMG=kylemanna/openvpn:latest\"\r\nEnvironment=\"PORT=943:1194/tcp\"\r\n\r\n# Clean-up bad state if still hanging around\r\nExecStartPre=-/usr/bin/docker rm -f $NAME\r\n\r\n# Attempt to pull new image for security updates\r\nExecStartPre=-/usr/bin/docker pull $IMG\r\n\r\nExecStart=/usr/bin/docker run --rm --cap-add=NET_ADMIN --volumes-from ${DATA_VOL}:ro --name ${NAME} -p ${PORT} ${IMG} ovpn_run $ARGS\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n```\r\n\r\nWhat am I missing?\r\n\r\n```\r\n[hendry@bible system]$ telnet localhost 943\r\nTrying ::1...\r\nConnected to localhost.\r\nEscape character is '^]'.\r\nConnection closed by foreign host.\r\n[hendry@bible system]$ telnet 192.168.1.4 943\r\nTrying 192.168.1.4...\r\ntelnet: Unable to connect to remote host: Network is unreachable\r\n[hendry@bible system]$  nmap -p943 localhost                                                                                                          [20/1383]\r\n\r\nStarting Nmap 7.01 ( https://nmap.org ) at 2016-01-28 13:20 GMT\r\nNmap scan report for localhost (127.0.0.1)\r\nHost is up (0.00013s latency).\r\nOther addresses for localhost (not scanned): ::1\r\nrDNS record for 127.0.0.1: localhost.localdomain\r\nPORT    STATE SERVICE\r\n943/tcp open  unknown\r\n\r\nNmap done: 1 IP address (1 host up) scanned in 0.06 seconds\r\n[hendry@bible system]$  nmap -p943 192.168.1.4\r\n\r\nStarting Nmap 7.01 ( https://nmap.org ) at 2016-01-28 13:20 GMT\r\nNmap scan report for 192.168.1.4\r\nHost is up (0.0029s latency).\r\nPORT    STATE    SERVICE\r\n943/tcp filtered unknown\r\n\r\nNmap done: 1 IP address (1 host up) scanned in 0.07 seconds\r\n[hendry@bible system]$ ip a                                                                                                                            [0/1383]\r\n1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default\r\n    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n    inet 127.0.0.1/8 scope host lo\r\n       valid_lft forever preferred_lft forever\r\n    inet6 ::1/128 scope host\r\n       valid_lft forever preferred_lft forever\r\n2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000\r\n    link/ether 60:02:92:60:fe:e9 brd ff:ff:ff:ff:ff:ff\r\n    inet 192.168.1.4/24 brd 192.168.1.255 scope global dynamic enp2s0\r\n       valid_lft 3275sec preferred_lft 3275sec\r\n3: wlp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000\r\n    link/ether d0:53:49:1c:da:f2 brd ff:ff:ff:ff:ff:ff\r\n4: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default\r\n    link/ether 02:42:12:ae:ee:f7 brd ff:ff:ff:ff:ff:ff\r\n    inet6 fe80::42:12ff:feae:eef7/64 scope link\r\n       valid_lft forever preferred_lft forever\r\n24: veth7f0d05d@if23: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP group default\r\n    link/ether 3a:6e:fa:fe:f1:5d brd ff:ff:ff:ff:ff:ff link-netnsid 0\r\n    inet6 fe80::386e:faff:fefe:f15d/64 scope link\r\n       valid_lft forever preferred_lft forever\r\n[hendry@bible system]$ sudo iptables -L\r\nChain INPUT (policy ACCEPT)\r\ntarget     prot opt source               destination\r\nACCEPT     tcp  --  anywhere             anywhere             tcp dpt:943\r\n\r\nChain FORWARD (policy ACCEPT)\r\ntarget     prot opt source               destination\r\nDOCKER     all  --  anywhere             anywhere\r\nACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED\r\nACCEPT     all  --  anywhere             anywhere\r\nACCEPT     all  --  anywhere             anywhere\r\n\r\nChain OUTPUT (policy ACCEPT)\r\ntarget     prot opt source               destination\r\n\r\nChain DOCKER (1 references)\r\ntarget     prot opt source               destination\r\nACCEPT     tcp  --  anywhere             172.17.0.2           tcp dpt:openvpn\r\n```"}}