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 »
  -  
« Previous Page
Mar
16
2011
ebalaskas: I’ve just created an…
Posted by ebalaskas timeline at 10:00:04 in microblogging

identica.pngI’ve just created an SSL certficate singed by !cacert on my site. Hopefully with !apache Redirect permanent everything will be great.

from Updates from ebalaskas on Identi.ca!

Mar
03
2011
ebalaskas: greek: άντε να φτάσει…
Posted by ebalaskas timeline at 09:44:13 in microblogging

identica.pnggreek: άντε να φτάσει η βενζίνη 10€ το λίτρο γιατί δεν μπορώ να πηγαίνω στην δουλειά μαζί με τον λαουτζίκο στην κίνηση

from Updates from ebalaskas on Identi.ca!

Mar
02
2011
ebalaskas: mysql security_tip: Add skip_networking…
Posted by ebalaskas timeline at 19:40:50 in microblogging

identica.pngmysql security_tip: Add skip_networking to [mysqld] section in /etc/my.cnf, if you dont want TCP/IP connections to #MySQL (#MariaDB) Server

from Updates from ebalaskas on Identi.ca!

Mar
01
2011
ebalaskas: greek:Θυμάμαι κάποτε την βενζίνη…
Posted by ebalaskas timeline at 19:59:43 in microblogging

identica.pnggreek:Θυμάμαι κάποτε την βενζίνη κάτω από 1€/lt! Άραγε είναι δείγμα ότι γέρασα? ότι θυμάμαι πράγματα που ακούγονται στους άλλους μυθικά?

from Updates from ebalaskas on Identi.ca!

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!

Next Page »
  -  
« Previous 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