Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 to IPv4 - is it possible? #40

Open
wioxjk opened this issue Aug 17, 2017 · 1 comment
Open

IPv6 to IPv4 - is it possible? #40

wioxjk opened this issue Aug 17, 2017 · 1 comment

Comments

@wioxjk
Copy link

wioxjk commented Aug 17, 2017

I have not found any documentation regarding this matter, so I need to open up a ticket here in order to get some lights on my question :)

My situation:
A loadbalancing server with IPv4 and IPv6, that proxies to servers with only IPv4. Is it possible to let clients connect to pen over IPv6 and pen itself check the IPv4 servers in the backend?

@UlricE
Copy link
Owner

UlricE commented Aug 18, 2017

Certainly, you can even proxy Unix sockets. Convoluted example here:

http://morestuff.siag.nu/2014/04/14/using-pen-as-an-address-family-adapter/

Less convoluted example:

ulric@debtest:~/Git/pen$ ./pen -df ::1:2222 127.0.0.1:22
2017-08-18 22:51:59: read_cfg((null))
2017-08-18 22:51:59: Before: conns = (nil), connections_max = 0, clients = (nil), clients_max = 0
2017-08-18 22:51:59: expand_conntable(500)
2017-08-18 22:51:59: After: conns = 0x1c24900, connections_max = 500, clients = 0x7f94a8592010, clients_max = 2048
2017-08-18 22:51:59: pen 0.34.1 starting
2017-08-18 22:51:59: servers:
2017-08-18 22:51:59: 0 127.0.0.1:22:0:0:0:0

And in another window:

ulric@debtest:~$ ssh -p 2222 ::1

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Fri Aug 18 22:50:57 2017 from localhost
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants