{"action":"opened","issue":{"url":"https://api.github.com/repos/irsl/dfwfw/issues/8","repository_url":"https://api.github.com/repos/irsl/dfwfw","labels_url":"https://api.github.com/repos/irsl/dfwfw/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/irsl/dfwfw/issues/8/comments","events_url":"https://api.github.com/repos/irsl/dfwfw/issues/8/events","html_url":"https://github.com/irsl/dfwfw/issues/8","id":169003693,"number":8,"title":"Enabling port forwarding between two containers","user":{"login":"vrastogi","id":3732050,"avatar_url":"https://avatars.githubusercontent.com/u/3732050?v=3","gravatar_id":"","url":"https://api.github.com/users/vrastogi","html_url":"https://github.com/vrastogi","followers_url":"https://api.github.com/users/vrastogi/followers","following_url":"https://api.github.com/users/vrastogi/following{/other_user}","gists_url":"https://api.github.com/users/vrastogi/gists{/gist_id}","starred_url":"https://api.github.com/users/vrastogi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrastogi/subscriptions","organizations_url":"https://api.github.com/users/vrastogi/orgs","repos_url":"https://api.github.com/users/vrastogi/repos","events_url":"https://api.github.com/users/vrastogi/events{/privacy}","received_events_url":"https://api.github.com/users/vrastogi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-02T22:25:37Z","updated_at":"2016-08-02T22:25:37Z","closed_at":null,"body":"I want to forward a port from one container to another. I did something like this:\r\n\r\n```\r\n   \"container_dnat\": {\r\n       \"rules\": [\r\n          { \r\n             \"filter\": \"-p tcp --dport 5001\",\r\n             \"src_network\":   \"bridge\",\r\n             \"src_container\": \"src\",\r\n             \"dst_network\":   \"bridge\",\r\n             \"dst_container\": \"dst\",\r\n             \"expose_port\": \"5001/tcp\" \r\n          }\r\n       ]\r\n   }\r\n```\r\nI have a server listening on dst:5001 and I want to connect at src:5001 from inside src. The above does not work. What changes should I do to get it working?\r\n\r\nMoreover, I see these rules generated by dfwfw:\r\n-A DFWFW_PREROUTING -i docker0 -p tcp -m tcp --dport 5001 -j DNAT --to-destination 172.17.0.3:5001\r\n-A DFWFW_FORWARD -s 172.17.0.2/32 -d 172.17.0.3/32 -i docker0 -o docker0 -p tcp -m tcp --dport 5001 -j ACCEPT\r\n\r\nWhat am I missing?\r\n"}}
{"actor":{"display_login":"vrastogi"}}