Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save theundefined/bb5240092f42cf43e7993241c20a08cd to your computer and use it in GitHub Desktop.
Save theundefined/bb5240092f42cf43e7993241c20a08cd to your computer and use it in GitHub Desktop.
Przekierowanie portu na systemd:
root@host:~# cat /etc/systemd/system/przekierowanie.service
[Unit]
Description=przekierowanie redirect
Requires=network.target
After=network.target
[Service]
ExecStart=/lib/systemd/systemd-socket-proxyd 127.0.0.1:4321
[Install]
WantedBy=multi-user.target
root@host:~# cat /etc/systemd/system/przekierowanie.socket
[Socket]
ListenStream=0.0.0.0:1234
[Install]
WantedBy=sockets.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment