Tag Archives: ssh

OpenWRT and PPTP VPN

Just a note on configuring OpenWRT and PPTP VPN.

Install:

kmod-nf-nathelper 
kmod-nf-nathelper-extra

NOTE: Those will be removed when you upgrade OpenWRT trough Sysupgrade image, so be sure to install them again after an upgrade.

If this does not fix the issue with PPTP VPN’s not connecting then ssh to the router and create a file: /etc/nftables.d/20-pptp-conntrack-helper.nft with the following content:

chain user_pre_output {
    type filter hook output priority -1; policy accept;
    tcp dport 1723 ct helper set "pptp"
}

and reboot the router.
https://github.com/openwrt/openwrt/issues/13009

P.S: If for some reason OpenWRT forgot to load your firewall rules after sysupgrade

fw4 print > /tmp/fw4.rules
nft -f /tmp/fw4.rules
/etc/init.d/firewall enable
ls -l /etc/rc.d/*firewall*

TortoiseGIT Disconnected: No supported authentication methods available ( server sent: publickey )

After migrating to SSH authentication for my Bitbucket repo ( one of the reasons for doing that was to be able to mirror my repo on my home server, article on that topic coming soon ), the TortoiseGIT windows client stopped working. It was unable to do pulls and pushes and all other functionallity related to connecting to the remote GIT. Android Studio and other IDE’s and tools I use on a daily basis, including git command line client were working properly.

Untitled1

TortoiseGIT uses Pageant (part of the PuTTY toolset) to manage it’s authentication keys. Because I have already generated the public / private key pair using ssh-keygen all I needed to do was make Pageant aware of them.

For this Puttygen (part of the PuTTY toolset) should be used.

Untitled4

pass

Load the key in Puttygen (you will be prompted for password during the loading process), leave the default settings. If the import was successful you will get a message telling you so.

success

Then click ‘Save private key’ button and save your private key in putty default ppk format. Fire up Pageant and load your newly created key.

Untitled6

Now pulls, pushes and all other functionallity related to connecting to the remote GIT should work as expected.

Untitled7

NOTE: Pageant should be started prior to using TortoiseGIT, else you will get the same error message again.