{"action":"created","issue":{"url":"https://api.github.com/repos/yrutschle/sslh/issues/100","repository_url":"https://api.github.com/repos/yrutschle/sslh","labels_url":"https://api.github.com/repos/yrutschle/sslh/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/yrutschle/sslh/issues/100/comments","events_url":"https://api.github.com/repos/yrutschle/sslh/issues/100/events","html_url":"https://github.com/yrutschle/sslh/issues/100","id":173604687,"number":100,"title":"How does the transparent proxy work?","user":{"login":"Saren-Arterius","id":4948919,"avatar_url":"https://avatars.githubusercontent.com/u/4948919?v=3","gravatar_id":"","url":"https://api.github.com/users/Saren-Arterius","html_url":"https://github.com/Saren-Arterius","followers_url":"https://api.github.com/users/Saren-Arterius/followers","following_url":"https://api.github.com/users/Saren-Arterius/following{/other_user}","gists_url":"https://api.github.com/users/Saren-Arterius/gists{/gist_id}","starred_url":"https://api.github.com/users/Saren-Arterius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saren-Arterius/subscriptions","organizations_url":"https://api.github.com/users/Saren-Arterius/orgs","repos_url":"https://api.github.com/users/Saren-Arterius/repos","events_url":"https://api.github.com/users/Saren-Arterius/events{/privacy}","received_events_url":"https://api.github.com/users/Saren-Arterius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-27T16:51:35Z","updated_at":"2016-08-30T09:26:49Z","closed_at":null,"body":"I am interested in the transparent proxy feature of sslh. I plan to import a similar feature to any websocket-tcp bridge so that I can use IP based access management while players are accessing my game server through that bridge. Where do I gain such knowledge about the implementation of transparent proxy? Thanks."},"comment":{"url":"https://api.github.com/repos/yrutschle/sslh/issues/comments/243383745","html_url":"https://github.com/yrutschle/sslh/issues/100#issuecomment-243383745","issue_url":"https://api.github.com/repos/yrutschle/sslh/issues/100","id":243383745,"user":{"login":"yrutschle","id":4983423,"avatar_url":"https://avatars.githubusercontent.com/u/4983423?v=3","gravatar_id":"","url":"https://api.github.com/users/yrutschle","html_url":"https://github.com/yrutschle","followers_url":"https://api.github.com/users/yrutschle/followers","following_url":"https://api.github.com/users/yrutschle/following{/other_user}","gists_url":"https://api.github.com/users/yrutschle/gists{/gist_id}","starred_url":"https://api.github.com/users/yrutschle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrutschle/subscriptions","organizations_url":"https://api.github.com/users/yrutschle/orgs","repos_url":"https://api.github.com/users/yrutschle/repos","events_url":"https://api.github.com/users/yrutschle/events{/privacy}","received_events_url":"https://api.github.com/users/yrutschle/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T09:26:49Z","updated_at":"2016-08-30T09:26:49Z","body":"On Sat, Aug 27, 2016 at 09:51:37AM -0700, Saren Arterius wrote:\n> I am interested in the transparent proxy feature of sslh. I plan to import a similar feature to any websocket-tcp bridge so that I can use IP based access management while players are accessing my game server through that bridge. Where do I gain such knowledge about the implementation of transparent proxy? Thanks.\n\nInternet searches and looking up examples (netcat, if I\nremember correctly).\n\nThe basic idea is to bind() to the address of the remote\nclient instead of an uninitialised address which bind()\nsets to a local address.\n\nBasic proxy:\naccept() -> gives you a socket connected to the remote client\nbind() -> gives you the local part of a socket\nconnect() -> to the server you're proxying to\n\nTransparent proxy:\naccept() -> gives you a socket connected to the remote client\ninit sockaddr with remote address returned by accept()\nbind() with that sockaddr\nconnect() to the server you're proxying to.\n\n\nHope that helps,\nY.\n\n"}}
{"actor":{"display_login":"yrutschle"}}