Setup a !VPN connection over !SSH in just a few minutes! http://goo.gl/XW0co aka keep your !anonymity on the web and hide your ip.
It’s super easy to setup a vpn connection over an ssh access.
You dont believe me ?
You can try it by your self in only a few seconds away.
You have to be root on your local machine and you have to ssh as root to your remote machine.
To do that, change your remote /etc/ssh/sshd_config with the below values:
AllowUsers root
PermitRootLogin yes
PermitTunnel = yes
restart your ssh daemon: /etc/init.d/sshd restart
After that, copy the below shell script : ssh.vpn.sh
This is ssh.vpn.sh code:
#!/bin/sh
# Evaggelos Balaskas < ebalaskas _AT_ ebalaskas _DOT_ gr >
# Last change: Mon Feb 21 23:48:53 GMT-2 2011
# If you can spare a dollar, plz donate !
clear
echo "Give me server's name: "
read SERVER
echo "Give me ssh port: "
read PORT
SIP=`host $SERVER|tail -1 | awk '{print $NF}'`
DGW=`ip route show | grep default | awk '{print $3}'`
ssh -fw any:any $SIP -p $PORT 'ifconfig tun0 down;
ifconfig tun0 10.20.30.40 pointopoint 10.20.30.41;
echo 1 > /proc/sys/net/ipv4/ip_forward;
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;
grep nameserver /etc/resolv.conf ' > /etc/resolv.conf
# Configure Client tun0 --> point-to-point with server tun0
ifconfig tun0 down
ifconfig tun0 10.20.30.41 pointopoint 10.20.30.40
# Configure Routing
route add -host $SIP dev eth0
route add default gw 10.20.30.40 dev tun0
route del default gw $DGW dev eth0
Make this file executable: chmod +x ssh.vpn.sh
and run it # ./ssh.vpn.sh !!!
You should asked to write the server’s name (eg. ssh.example.com) and the ssh port (eg. 22) and of course your root remote password.
Everything else is automate to make your life
Simple as that.
Open whatismyip to see your new ip address!
It’s super easy to setup a vpn connection over an ssh access.
You dont believe me ?
You can try it by your self in only a few seconds away.
You have to be root on your local machine and you have to ssh as root to your remote machine.
To do that, change your remote /etc/ssh/sshd_config with the below values:
AllowUsers root
PermitRootLogin yes
PermitTunnel = yes
restart your ssh daemon: /etc/init.d/sshd restart
After that, copy the below shell script : ssh.vpn.sh
This is ssh.vpn.sh code:
#!/bin/sh
# Evaggelos Balaskas < ebalaskas _AT_ ebalaskas _DOT_ gr >
# Last change: Mon Feb 21 23:48:53 GMT-2 2011
# If you can spare a dollar, plz donate !
clear
echo "Give me server's name: "
read SERVER
echo "Give me ssh port: "
read PORT
SIP=`host $SERVER|tail -1 | awk '{print $NF}'`
DGW=`ip route show | grep default | awk '{print $3}'`
ssh -fw any:any $SIP -p $PORT 'ifconfig tun0 down;
ifconfig tun0 10.20.30.40 pointopoint 10.20.30.41;
echo 1 > /proc/sys/net/ipv4/ip_forward;
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;
grep nameserver /etc/resolv.conf ' > /etc/resolv.conf
# Configure Client tun0 --> point-to-point with server tun0
ifconfig tun0 down
ifconfig tun0 10.20.30.41 pointopoint 10.20.30.40
# Configure Routing
route add -host $SIP dev eth0
route add default gw 10.20.30.40 dev tun0
route del default gw $DGW dev eth0
Make this file executable: chmod +x ssh.vpn.sh
and run it !!!
You should asked to write the server’s name (eg. ssh.example.com) and the ssh port (eg. 22).
Everything else is automate to make your life
Simple as that.
Open whatismyip to see your new ip address!
I am looking for a street bike. Any suggestions? PS: i dont have a lot of money, so dont point bikes that i need to sell my kidney !
@kiirani you can try something like this: [ebal@mylaptop ~]€ grep pacman /etc/fstab tmpfs /var/cache/pacman/pkg tmpfs defaults 0 0
greek: το χθεσινό match ολυμπιακός-παναθηναϊκός είναι η συνέχεια των εξεγέρσεων που γίνονται στον ανατολικό κόσμο γύρω από την μεσόγειο?
!Fluxbox 1.3 has arrived! http://www.fluxbox.org/news/
My new favorite online comic: http://geekandpoke.typepad.com/geekandpoke/
@ebalaskas import textwrap text = “abcdefghijklmnopqrstuvwxyz0123456789…” print textwrap.wrap(text, width=255)
Can anyone plz tell me, how i can split a very large string > 4096 chars into 255 chunks in python ?
Custom Notify MSG: notify-send -u critical -i battery “Laptop is dying” “nDude, you have no battery at all. Find AC and find it fast!”
@comzeradd i am using it! Its great vimprobable is probable one of the best web browser i have ever used !
vim + WebKit => http://www.vimprobable.org/ plz try it, plz plz just try it.
URL Shortener. Solution or Security Risk ? http://balaskas.gr/blog/2011/02/14/url-shortener-solution-or-security-risk/
Ok i have to admit that large urls are un-friendly, difficult to share and sometimes have privacy info.
Url shorteners provide anonymity and a short-friendly url to use and share.
But they are also a security risk! Browser security is something that we take very light, but we shouldn’t!
When someone sends me a url shortener i have to use a web browser to click on it and see the destination page. With simple urls i have to just mouse over (firefox 3) to see the destination.
Sometimes people send me spam or urls that i dont wish to open or see.
I believe that the design of url shorteners is just wrong!
People should be able to see or even test the urls before they click and open on them.
Browser hijacking is one form of malicious code that url shorteners make it extremely easy !
An idea:
Like google’s “Instant is on”, a similar action should be done with url shorteners.
With mouse over (or whatever else you like) the destination domain/url should reveal to the client.
And then if he/she agrees to verify for open the destination url to a new tab/window.
A simple chrome/firefox extension shouldn’t be that hard.
Or you have a different opinion ?
shit my dad says: S01E17 “guns are dangerous, only if you dont know how to use them. every guy has a penis not every woman has an orgasm!”
smem memory reporting tool: http://www.selenic.com/smem/ A very useful !linux command
For greek people: btw επειδή έκανα ένα σχόλιο για IQ > 40, δεν ήθελα να προσβάλω κανέναν. Το δικό μου είναι 41 για αυτό :D
For greek people:Το 90% των ανθρώπων δεν ξέρει καν τι είναι το 16αδικο. ΔΕΝ αναφέρομαι σε επίπεδο DNS ούτε σε MAC. Είναι un-friendly !ipv6