ssh: add localForwards option for matchBlocks

This commit is contained in:
Tobias Happ 2019-08-02 19:37:45 +02:00 committed by Robert Helgesson
parent ed4f66185f
commit 0e871b490e
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 70 additions and 0 deletions

View file

@ -11,6 +11,7 @@ Host abc
Host xyz
ServerAliveInterval 60
IdentityFile file
LocalForward [localhost]:8080 [10.0.0.1]:80
Host *
ForwardAgent no

View file

@ -15,6 +15,13 @@ with lib;
xyz = {
identityFile = "file";
serverAliveInterval = 60;
localForwards = [
{
bind.port = 8080;
host.address = "10.0.0.1";
host.port = 80;
}
];
};
"* !github.com" = {