I have the following problem:
I have my network drive in my home network that I would like to mount via
sshfs. Being in my local network I don't have to care that much about encryption and could use the
arcfour cipher for example. My ssh port internally is
For technical reasons I can connect from the outside network via
ssh on the port
B which is not the same as
A. I am also not able to connect from the outside to that port while I am in my home network.
Now, mounting from the outside, I would of course rely on other encryption.
I would like to build a
systemd-service which handles that mount situation reasonably well, using
arcfour on port
A iff I am in network with ID
X and connecting via port
B with another cipher in all other cases. I'm still somewhat new to writing my own services and could not find the right condition that would work here.
Could someone help me out with this?