Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

SOCKS proxy over SSH

Here goes a quick and valuable tip people don't usually know, or at least a couple of friends of mine were not aware of. The two keywords will be SOCKS and SSH.

Connecting over to a remote server, one can bypass unauthorized access blocked by usually our network firewall. The most common examples given are restricted access to Facebook, MSN or torrents. We can also have unlimited access to all kinds of contents thanks to the nice sysadmin managing the network who puts no barriers whatsoever, but we may not trust him or the network users to permit unencrypted data flowing openly. Having some way to establish an encrypted connection to a known network who we trust, or distrust less, and tunneling over it would be safer. This is where SOCKS and SSH can be much of helpful!
SOCKS is an Internet protocol that routes network packets between a client and server through a proxy server. -- via Wikipedia
I'm certain as most, if not all, of our daily applications implement themselves some way of proxying (mostly HTTP, HTTPS and SOCKS) or use the system-wide configured network proxy server. Now all we need is a remote and secure server to proxy and tunnel. This is the part where SSH enters:
Secure Shell (SSH) is a network protocol for secure data communication, remote shell services or command execution and other secure network services between two networked computers that it connects via a secure channel over an insecure network: a server and a client (running SSH server and SSH client programs, respectively). -- via Wikipedia
What this means is if we have a SSH-enabled server we can take advantage of it because typically no further configurations or tweaks are needed. Let's take a look at the SSH client manual:

-D [bind_address:]port
Specifies a local ``dynamic'' application-level port forwarding. This works by allocat-
ing a socket to listen to port on the local side, optionally bound to the specified
bind_address. Whenever a connection is made to this port, the connection is forwarded
over the secure channel, and the application protocol is then used to determine where to
connect to from the remote machine. Currently the SOCKS4 and SOCKS5 protocols are sup-
ported, and ssh will act as a SOCKS server. Only root can forward privileged ports.
Dynamic port forwardings can also be specified in the configuration file.
Got it? Great! Let's combine SSH+SOCKS:
ssh -C2qTnN -D <PORT> <USER>@<IP>
I will not provide the details of what each option features - run 'man ssh' and find by yourself. The result is a SOCKS proxy over SSH. Now let's wrap it in a bash script:
#!/bin/bash

if [[ `uname` == 'Darwin' ]]; then
trap " {
echo \"Setting SOCKS proxy down...\" ; \
networksetup -setsocksfirewallproxystate ethernet off ;
networksetup -setsocksfirewallproxystate wi-fi off;
exit 1;
}" ERR INT TERM EXIT

networksetup -setsocksfirewallproxystate ethernet on
networksetup -setsocksfirewallproxystate wi-fi on
fi

ssh -C2qTnN -D 9999 <USER>@<IP>
Replace <USER>@<IP> by your username and IP address. This bash script, in case you are a Mac user, will automatically turn SOCKS on upon execution and turn it off when shutting down (Mac users using an OS X version prior to Lion should replace "wi-fi" by "airport"). Other Unix users (Linux, BSD, etc) should set SOCKS host as "localhost" and SOCKS port "9999" in either your system network configurations or in each application you want to tunnel over.

Announcing ENOS 2009

(See the announcement in English bellow)




Pelo terceiro ano consecutivo, toda a comunidade portuguesa de openSUSE reúne-se num só espaço com o intuito de dinamizar o projecto openSUSE em Portugal.

O ENOS 2009 (acrónimo para "Encontro Nacional de openSUSE 2009"), organizado pela comunidade portuguesa de openSUSE e pela Associação de Informática de Castelo Branco, decorrerá na magnífica cidade de Castelo Branco, Sábado 26 de Setembro, tendo como ponto de encontro o Instituto Português da Juventude de Castelo Branco pelas 10 horas.

O objectivo do ENOS é dar a oportunidade aos utilizadores portugueses de openSUSE de se juntarem assim como dar aos participantes uma visão introspectiva dos últimos desenvolvimentos do projecto openSUSE e estimulá-los a participarem na comunidade, tudo num ambiente bastante informal e aberto.



Para além do convívio, troca de ideias e discussões dos mais diversificados temas possíveis, também decorreram durante o dia apresentações e BoF's tais como:

  • O projecto openSUSE desde à 365 dias (Carlos Gonçalves, openSUSE)
  • Integração de Open Source vs Software Proprietário (Engº João Batista, Novell Portugal)
  • Linux na pós-produção áudio (Ricardo Antunes, UrbanaFM)
  • BoF: Moonlight (Andreia Gaita)
  • BoF: Packaging com o Build Service (Carlos Gonçalves)

Também este ano será possível submeter-se aos exames de certificação LPI, através da empresa nacional DRI, Master Affiliate do LPI em Portugal, com um desconto de 50% nas certificações - os interessados deveram informar a organização com pelo menos 8 dias de antecedência da sua intenção.

Assim, convidam-se todas as comunidades, associações e instituições, empresas e individuais a participarem.

Embora o encontro seja totalmente livre, agradece-se o registo na página do evento ou por email para eventos () opensusept () org por forma a ter uma ideia do número expectável de participantes.

Para informação mais detalhada, queira por favor consultar a página oficial do evento em http://pt.opensuse.org/Eventos/ENOS


Com os melhores cumprimentos,
A organização do ENOS 2009



English Version (note: it differs slightly from the above in Portuguese)




For the third consecutive year, all the Portuguese openSUSE community users will be meeting will the main goal of boosting the openSUSE project in Portugal.

ENOS 2009 is the third yearly edition of the event and will be held in the Institudo Português da Juventude (IPJ), Castelo Branco, Portugal on Saturday, 26 September.

  • About
The acronym ENOS stands for ‘Encontro Nacional de openSUSE‘, a Portuguese expression which can be translated to ‘National openSUSE Meeting‘, an event meant to unite the Portuguese openSUSE users, as well as provide the participants an inside view into the latest developments in the openSUSE project and stimulate them to take an active part in the community itself.

  • Schedule
The current schedule, subject to changes, defines the following (GMT timezone):
  • 10:00 - Gathering at Institudo Português da Juventude
  • 11:00 - ENOS kicks off
    • 11:15 - 11:50 - The openSUSE project since 365 days ago (Carlos Gonçalves)
    • 11:50 - 12:00 - Coffe Break
    • 12:00 - 12:45 - Open Source vs Proprietary Software Integration (Eng. João Batista) Batista)
  • 13:00 - 14:30 - Lunch
  • 14:30 - 17:00 - IPJ
    • 14:30 - 16:00 - Audio post production on Linux (Ricardo Antunes)
    • 16:00 - 16:30 - (pending talk)
    • 16:30 - 16:45 - Coffe Break
    • 16:45 - 17:30 - Birds of a Feather
      • 16:45 - 17:10 - BoF: Moonlight (Andreia Gaita)
      • 17:10 - 17:30 - BoF: Packaging with Build Service (Carlos Gonçalves)
    • 17:30 - 18:30 - Activity (suprise)
    • 18:30 - 19:30 - Ideas & Discussion ; openSUSE Install Party ; LPI Certification
  • +19:30 - Castelo Branco at night biggrin



  • LPI
The LPI (Linux Professional Institute) seeks to become recognized as the global leader in the certification of Linux professionals while advancing the Linux and Open Source movement through strategic partners, sponsorships, innovative programs and community development activities.

The ENOS organization has the pleasure to announce that we agreed with the LPI Master Affiliate DRI to allow interested people to certificate themselves with the LPI certification during the ENOS meeting (50% discount), which is a really good opportunity to everyone get their own LPI certification!

  • Invitation
Anyone interested in attend should sign in or email eventos () opensusept () org so we can have a better idea of how many people we should expect (tip: you will not leave the event without some openSUSE goodies! wink).

For more detailed and up-to-date information please see the official event page.

  • The Community

  • Thanks To
Big thanks to Associação de Informática de Castelo Branco, Novell, IPJ, and Castelo Branco City Council for the support!

Looking forward to see you there!

openSUSE 11.1 KDE3 - urgent mirroring (updated)

Update: Situation is again under control. Benji Weber, Masim Sugianto and Andre Duffeck have setup mirrors (THANKS!) - see MIRRORS file. Temporarily the Live CDs (not the USBs) will be automatically redirected to Benji's.



Since the release announcement of the Unofficial KDE 3.5 Live CD for openSUSE 11.1 the server where the ISOs are hosted at has been running out of bandwidth due to the huge amount of requests for downloading those files, and since the server also host other important client accounts, the sysadmin offered me two choices:
  1. disable the account
  2. get mirrors around
In the meantime I was forced to move the files away and wait for some mirrors to fight back all the download requests. So, whoever can provide mirroring of these files please contact me (comment, email or IRC)! Torrents are also allowed and recommended!

My apologies for any inconvenience caused...

P.S.: I didn't expected all this traffic around the ISOs... the openSUSE 11.0 KDE3 Live CDs didn't get that many attention. Well, it's a good sign though ;-)

Unofficial KDE 3.5 Live CD for openSUSE 11.1

Quoting "Unofficial KDE 3.5 Live CD for openSUSE 11.1" story from openSUSE News:

KDE logoWant classic KDE on openSUSE, without the full DVD download? Carlos Goncalves has you covered. openSUSE 11.1 Live CDs and USB images featuring KDE 3.5 are now available for download.

Created by openSUSE community member Carlos Goncalves, the KDE 3.5 Live CD and USB images contain openSUSE 11.1 plus several key updates.

In addition to KDE 3.5, the Live CD offers OpenOffice.org 3.0, Smolt, Amarok 1.4.10, KDEPIM3, Firefox 3.0.4, K3b, and many other useful applications. You can see the entire package list here: package-lists-openSUSE

And, of course, openSUSE has the current KDE releases covered as well. You can download the official openSUSE 11.1 KDE4 Live CDs based on KDE 4.1.3, or if you want to follow KDE development, Stephan Binner has created a KDE Four Live CD featuring KDE 4.2 Beta 2.

Note that the KDE 3.5 live CD is an "unofficial" release. Even though it's not a formal release, we're excited by the work Carlos has put into supporting KDE 3.5 and showing what can be done with the build service. Want to create your own Live CD featuring openSUSE? See Carlos Build Service Live CD project on creating a Live CD here: home:cgoncalves:LiveCD, and Masim's "How to Make openSUSE 11.1 KDE 3.5 LiveCD or LiveDVD" article.

Download


openSUSE 11.1 KDE3 Live CD and USB are available for i686 and x86_64 architectures:


If you want to report any bug found use Novell's Bugzilla for better tracking. Feedback can be sent via email, IRC and comment in here.

A huge thanks to Stephan 'Beineri' Binner, Stephan 'coolo' Kulow, and Joe 'Zonker' Brockmeier for their assistance and effort!

We hope that the openSUSE community will find it useful and have a lot of fun with KDE 3.5!

Mirrors administrators around the world, I think I will need your help! Please mirror these files and let me know the URL so I can point people out to your mirrors instead ;-)

openSUSE 11.1 has been released!




openSUSE 11.1 just got released a few seconds ago!
The openSUSE Project is proud to announce the release of openSUSE 11.1. The openSUSE 11.1 release includes more than 230 new features, improvements to YaST, major updates to GNOME, KDE, OpenOffice.org, and more freedom with a brand new license, Liberation fonts, and openJDK. This is also the first release built entirely in the openSUSE Build Service.

Get a copy of it by downloading via http://software.opensuse.org, or if you want an original copy order the openSUSE 11.1 Retail Box for only 59.95 EUR/USD. With the supported version of openSUSE you not only get a complete end-user documentation, installable media for x86 and x86 64-bit systems, plus 90 days of end-user installation support, but you also will be contributing by giving some money to the openSUSE project itself!

Read the full announcement: openSUSE 11.1 Released!

Digg it: http://digg.com/linux_unix/openSUSE_11_1_Released

Encontro Nacional de openSUSE 2008


The acronym ENOS stands for 'Encontro Nacional de openSUSE', a Portuguese expression which can be translated to 'National openSUSE Meeting', an event meant to unite the Portuguese openSUSE users.

The purpose of ENOS is to give an opportunity to the Portuguese openSUSE users to be together, as well as provide the participants an insight view on the latest developments on the openSUSE project and stimulate them to take an active part on the community itself.

ENOS 2008 is the second yearly edition (read about ENOS 2007 here) of the event and will be held in Instituto Superior de Engenharia do Porto (ISEP), Porto, Portugal on September 6th.

This year we will have special guests giving some talks:
  • Ricardo Cruz (YaST-GTK maintainer) will introduce us YaST and how easily is to create a module for it. PackageKit and libzypp will be be introduced.

  • Andreia Gaita (Mono developer) presenting Mono open source project, sponsored by Novell.

  • Rui Capela (Linux Audio hacker) will talk about his audio applications, focusing on Qtractor, an Audio/MIDI multi-track sequencer application.


(click to enlarge)

As in last year, attendees will have the opportunity to do the LPI Certification Exams at the event with a 50% discount off by LPI Master Affiliate DRI. Email eventos@opensusept.org to sign in.

Anyone interested in attend should sign in or email eventos@opensusept.org so we can have a better idea of how many people we should expect (tip: you will not leave the event without some openSUSE goodies!).

Big thanks to Porto Linux, ISEP, and Novell for the support!

LAN party for children

Oeste Digital Network (ODN), a tech group part of a Portuguese association which I am involved in, some days ago was invited by ANAE (Education and Animation National Association) to join a *particularly* mini LAN party for children between 4 and 7 years old. This LAN party will take three days (Friday to Sunday, and afternoons only obviously) in June, and the goal is to ODN take care of the games. Therefore computer games will be needed!

Since ODN is trying more and more to put proprietary software out of the way we are looking for open source game solutions to run on the 15 laptops that will be available. Digging a while for this "requirement" it seemed to be more difficult than we thought it would be - most of the games aren't suitable for kids and others are not really playable or appealable judging by their point of view. Currently we are looking for three to five games, which at least one should be multiplayer.

So, please if you are aware of good open source games for this range of ages let me know!

P.S.: If you are still wondering why this event is so *particularly* then what would you think if I tell you that it will be hosted in a bus hã!? ;-) Yeah, that's right, in a BUS!!


Linux 2008

Caixa Mágica and Sysbase for the 6th consecutive year are preparing Linux 2008, a National Open Technology Meeting event at the Auditório da Lispólis, Pólo Tecnológio de Lisboa, Telheiras, Portugal, coming up in 15 April.

Among many talks, "Linux in the low cost PC market" by Mandriva CEO François Bancilhnon, and "Debate: Definition of Open Standards and of Interoperability" by many known Portuguese and international people, including Manager Novell Portugal João Batista, would be personally the top moments of the day.

Also, there will be a short presentation about the recent decision that PSA Peugeot Citroën made for have choose SUSE Linux Enterprise for its desktop and server machines - 20,000 desktops plus 2,500 servers.


Unfortunately I will have to miss Linux 2008 due to an exam that I have to do (damn Maths!) ...
top