{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab2/issues/588","labels_url":"https://api.github.com/repos/openhab/openhab2/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab2/issues/588/comments","events_url":"https://api.github.com/repos/openhab/openhab2/issues/588/events","html_url":"https://github.com/openhab/openhab2/issues/588","id":124330785,"number":588,"title":"KNX connection through NAT","user":{"login":"dafal","id":11161058,"avatar_url":"https://avatars.githubusercontent.com/u/11161058?v=3","gravatar_id":"","url":"https://api.github.com/users/dafal","html_url":"https://github.com/dafal","followers_url":"https://api.github.com/users/dafal/followers","following_url":"https://api.github.com/users/dafal/following{/other_user}","gists_url":"https://api.github.com/users/dafal/gists{/gist_id}","starred_url":"https://api.github.com/users/dafal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dafal/subscriptions","organizations_url":"https://api.github.com/users/dafal/orgs","repos_url":"https://api.github.com/users/dafal/repos","events_url":"https://api.github.com/users/dafal/events{/privacy}","received_events_url":"https://api.github.com/users/dafal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-30T10:27:04Z","updated_at":"2015-12-30T10:37:19Z","closed_at":"2015-12-30T10:34:25Z","body":"Hi,\r\n\r\nI have just migrated my openhab server at home from a centos server to a docker container.  Everything just works fine except the KNX binding.  I found the reason for this.  I see in the code (KNXConnection.java) that the KNXNetworLink method return a KNXNetworkLinkIP with by default the useNat param set to false (line 263).  However, when you use openhab in a docker you have to use NAT (managed by docker itself).\r\n\r\nI was able to trace the packet on the router and indeed the Siemens N148 IP interface return the packets to the internal docker ip address.\r\n\r\n23:27:54.113919 IP HOST_RUNNING_DOCKER.44292 > SIEMENTS_N148_IP_INT.3671: UDP, length 26\r\n23:27:54.114251 IP SIEMENTS_N148_IP_INT.3671 > INTERNAL_DOCKER_IP.44292: UDP, length 20\r\n\r\nWould it be possible to add a setting to be able to set the useNat setting to true in the openhab configuration file ?\r\n\r\nIn the meanwhile I go through a eibd to bypass the issue.  I am not a java developer but I assume it would not be too complicated to rebuild it with the param set to true."},"comment":{"url":"https://api.github.com/repos/openhab/openhab2/issues/comments/167974944","html_url":"https://github.com/openhab/openhab2/issues/588#issuecomment-167974944","issue_url":"https://api.github.com/repos/openhab/openhab2/issues/588","id":167974944,"user":{"login":"dafal","id":11161058,"avatar_url":"https://avatars.githubusercontent.com/u/11161058?v=3","gravatar_id":"","url":"https://api.github.com/users/dafal","html_url":"https://github.com/dafal","followers_url":"https://api.github.com/users/dafal/followers","following_url":"https://api.github.com/users/dafal/following{/other_user}","gists_url":"https://api.github.com/users/dafal/gists{/gist_id}","starred_url":"https://api.github.com/users/dafal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dafal/subscriptions","organizations_url":"https://api.github.com/users/dafal/orgs","repos_url":"https://api.github.com/users/dafal/repos","events_url":"https://api.github.com/users/dafal/events{/privacy}","received_events_url":"https://api.github.com/users/dafal/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T10:37:19Z","updated_at":"2015-12-30T10:37:19Z","body":"Indeed, my mistake I was in the wrong repository.  Sorry."}}