Skip to content

Instantly share code, notes, and snippets.

View mahdi13's full-sized avatar
🏝️
I'm still working on my masterpiece

Mahdi Perfect mahdi13

🏝️
I'm still working on my masterpiece
View GitHub Profile
@mahdi13
mahdi13 / ssh-vpn.py
Created August 6, 2017 17:11 — forked from pylover/ssh-tun-freebsd.sh
Python script to make layer 3 VPN using openssh
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
SSH VPN using pure python and openssh-client/server
Server configurations:
* Enable ip forwarding. (linux: /etc/sysctl.conf)
* Enable tunnel in openssh server config file: $ echo "PermitTunnel yes" >> /etc/ssh/sshd_config
# awesome-rest
#https://github.com/marmelab/awesome-rest