We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-01-13 17:31:02 +0200

Remote shell over cellular+vpn in Sailfish 3.0.1.11

Hi.

Version 3.0.1.11 of Sailfish comes with new firewall rules to improve security. One of these changes forbids remote ssh access over the cellular connection which is great.... except if you are already securing your cellular data connection through an VPN.

In order to recover ssh access via cellular+VPN I added a few lines at the end of file:

/etc/connman/firewall.d/00-devmode-firewall.conf

The lines added where these:

    ...
[vpn]

IPv4.INPUT.RULES = -p tcp -m tcp --dport 22 -j ACCEPT
IPv6.INPUT.RULES = -p tcp -m tcp --dport 22 -j ACCEPT

After these changes, restart the network subsystem via Settings App -> Utilities -> Restart Network and try to connect again to see if it works.

I hope this helps someone :).

Regards.

Remote shell over cellular+vpn in Sailfish 3.0.1.11

Hi.

Version 3.0.1.11 of Sailfish comes with new firewall rules to improve security. One of these changes forbids remote ssh access over the cellular connection which is great.... except if you are already securing your cellular data connection through an VPN.

In order to recover ssh access via cellular+VPN I added a few lines at the end of file:

/etc/connman/firewall.d/00-devmode-firewall.conf

The lines added where these:

    ...
[vpn]

IPv4.INPUT.RULES = -p tcp -m tcp --dport 22 -j ACCEPT
IPv6.INPUT.RULES = -p tcp -m tcp --dport 22 -j ACCEPT

After these changes, restart the network subsystem via Settings App -> Utilities -> Restart Network and try to connect again to see if it works.

I hope this helps someone :).

Regards.

EDIT 2018/03/21: After upgrading to release 3.0.2.8 the last step didn't work. I had to use:

root@Sailfish # systemctl restart connman

To make it work. (It may log you out if you're connected remotely :D )

Remote shell over cellular+vpn in Sailfish 3.0.1.113.0.1.11 / 3.0.2.8

Hi.

Version 3.0.1.11 of Sailfish comes with new firewall rules to improve security. One of these changes forbids remote ssh access over the cellular connection which is great.... except if you are already securing your cellular data connection through an VPN.

In order to recover ssh access via cellular+VPN I added a few lines at the end of file:

/etc/connman/firewall.d/00-devmode-firewall.conf

The lines added where these:

    ...
[vpn]

IPv4.INPUT.RULES = -p tcp -m tcp --dport 22 -j ACCEPT
IPv6.INPUT.RULES = -p tcp -m tcp --dport 22 -j ACCEPT

After these changes, restart the network subsystem via Settings App -> Utilities -> Restart Network and try to connect again to see if it works.

I hope this helps someone :).

Regards.

EDIT 2018/03/21: After upgrading to release 3.0.2.8 the last step didn't work. I had to use:

root@Sailfish # systemctl restart connman

To make it work. (It may log you out if you're connected remotely :D )