Evaggelos Balaskas - System Engineer

The sky above the port was the color of television, tuned to a dead channel

Blog
Posts
Wiki
About
Contact
rss.png twitter linkedin github gitlab profile for ebal on Stack Exchange

Next Page »
  -  
Feb
28
2011
ebalaskas: Try !IcedTea-Web as an…
Posted by ebalaskas timeline at 08:19:10 in microblogging

identica.pngTry !IcedTea-Web as an alternative Java Plug-in for your browser. There is no need of java installation !

from Updates from ebalaskas on Identi.ca!

Feb
28
2011
ebalaskas: fluxbox 1.3.1 has arrived!
Posted by ebalaskas timeline at 05:36:20 in microblogging

identica.pngfluxbox 1.3.1 has arrived!

from Updates from ebalaskas on Identi.ca!

Feb
27
2011
ebalaskas: Being Sunday morning at…
Posted by ebalaskas timeline at 10:24:39 in microblogging

identica.pngBeing Sunday morning at work, seems like playing Tic-Tac-Toe on a minefield. Every problem can be a death trap for your mojo !

from Updates from ebalaskas on Identi.ca!

Feb
26
2011
ebalaskas: What’s your opinion on…
Posted by ebalaskas timeline at 14:05:02 in microblogging

identica.pngWhat’s your opinion on creating an opensource hackerspace ? Any thoughts/suggestions ?

from Updates from ebalaskas on Identi.ca!

Feb
24
2011
ebalaskas: When someone believes that…
Posted by ebalaskas timeline at 18:33:19 in microblogging

identica.pngWhen someone believes that the traffic between 2 linux servers with no internet access,must be limited and checked for virus,you are fucked!

from Updates from ebalaskas on Identi.ca!

Feb
24
2011
ebalaskas: greek: ΦΕΚ για ISP…
Posted by ebalaskas timeline at 12:24:58 in microblogging

identica.pnggreek: ΦΕΚ για ISP http://goo.gl/3o6dU Εάν θέλετε να μάθετε τι υποχρεώνει το κράτος τους ISP για τα προσωπικά δεδομένα

from Updates from ebalaskas on Identi.ca!

Feb
21
2011
ebalaskas: Setup a !VPN connection…
Posted by ebalaskas timeline at 22:09:52 in microblogging

identica.pngSetup 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.

from Updates from ebalaskas on Identi.ca!

Feb
21
2011
vpn over ssh
Posted by ebal at 22:01:19 in planet_ellak, planet_Sysadmin

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!

  • 6 comments
Feb
21
2011
vpn over ssh
Posted by ebal at 22:01:02

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!

  • Add a comment
Feb
21
2011
ebalaskas: I am looking for…
Posted by ebalaskas timeline at 16:56:04 in microblogging

identica.pngI 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 !

from Updates from ebalaskas on Identi.ca!

  • 1 comment
Feb
21
2011
ebalaskas: @kiirani you can try…
Posted by ebalaskas timeline at 16:47:52 in microblogging

identica.png@kiirani you can try something like this: [ebal@mylaptop ~]€ grep pacman /etc/fstab tmpfs /var/cache/pacman/pkg tmpfs defaults 0 0

from Updates from ebalaskas on Identi.ca!

Feb
20
2011
ebalaskas: greek: το χθεσινό match…
Posted by ebalaskas timeline at 20:35:26 in microblogging

identica.pnggreek: το χθεσινό match ολυμπιακός-παναθηναϊκός είναι η συνέχεια των εξεγέρσεων που γίνονται στον ανατολικό κόσμο γύρω από την μεσόγειο?

from Updates from ebalaskas on Identi.ca!

Feb
19
2011
ebalaskas: !Fluxbox 1.3 has arrived!…
Posted by ebalaskas timeline at 20:14:51 in microblogging

identica.png!Fluxbox 1.3 has arrived! http://www.fluxbox.org/news/

from Updates from ebalaskas on Identi.ca!

Feb
17
2011
ebalaskas: My new favorite online…
Posted by ebalaskas timeline at 19:31:57 in microblogging

identica.pngMy new favorite online comic: http://geekandpoke.typepad.com/geekandpoke/

from Updates from ebalaskas on Identi.ca!

Feb
17
2011
ebalaskas: @ebalaskas import…
Posted by ebalaskas timeline at 19:13:20 in microblogging

identica.png@ebalaskas import textwrap text = “abcdefghijklmnopqrstuvwxyz0123456789…” print textwrap.wrap(text, width=255)

from Updates from ebalaskas on Identi.ca!

Feb
17
2011
ebalaskas: Can anyone plz tell…
Posted by ebalaskas timeline at 13:14:58 in microblogging

identica.pngCan anyone plz tell me, how i can split a very large string > 4096 chars into 255 chunks in python ?

from Updates from ebalaskas on Identi.ca!

Feb
16
2011
ebalaskas: Custom Notify MSG: notify-send…
Posted by ebalaskas timeline at 19:47:53 in microblogging

identica.pngCustom Notify MSG: notify-send -u critical -i battery “Laptop is dying” “nDude, you have no battery at all. Find AC and find it fast!”

from Updates from ebalaskas on Identi.ca!

Feb
16
2011
ebalaskas: @comzeradd i am using…
Posted by ebalaskas timeline at 19:46:56 in microblogging

identica.png@comzeradd i am using it! Its great vimprobable is probable one of the best web browser i have ever used !

from Updates from ebalaskas on Identi.ca!

Feb
16
2011
ebalaskas: vim + WebKit =>…
Posted by ebalaskas timeline at 08:04:43 in microblogging

identica.pngvim + WebKit => http://www.vimprobable.org/ plz try it, plz plz just try it.

from Updates from ebalaskas on Identi.ca!

Feb
15
2011
ebalaskas: @glezos to @ppapadeas …
Posted by ebalaskas timeline at 09:51:00 in microblogging

identica.png@glezos to @ppapadeas

from Updates from ebalaskas on Identi.ca!

Next Page »
  -  

Search

Admin area

  • Login

Categories

  • blog
  • wiki
  • pirsynd
  • midori
  • books
  • archlinux
  • movies
  • xfce
  • code
  • beer
  • planet_ellak
  • planet_Sysadmin
  • microblogging
  • UH572
  • KoboGlo
  • planet_fsfe

Archives

  • 2025
    • April
    • March
    • February
  • 2024
    • November
    • October
    • August
    • April
    • March
  • 2023
    • May
    • April
  • 2022
    • November
    • October
    • August
    • February
  • 2021
    • November
    • July
    • June
    • May
    • April
    • March
    • February
  • 2020
    • December
    • November
    • September
    • August
    • June
    • May
    • April
    • March
    • January
  • 2019
    • December
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2018
    • December
    • November
    • October
    • September
    • August
    • June
    • May
    • April
    • March
    • February
    • January
  • 2017
    • December
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2016
    • December
    • November
    • October
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2015
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • January
  • 2014
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2013
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2012
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2011
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2010
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2009
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
Ευάγγελος.Μπαλάσκας.gr

License GNU FDL 1.3 - CC BY-SA 3.0