Port forwarding with iptables

2011-02-27 by xpheas
I am using a Linux gateway with an public IP-address to access the Internet.
To access an internal machine on port 80 beind the gateway from outside I created the following forwarding rule (iptables).
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j DNAT --to
iptables -A INPUT -p tcp -m state --state NEW --dport 80 -i eth0 -j ACCEPT

The first rule does the forwaring job, the second allows new incomming connections on port 80.

Now the webserver on Port 80 behind the gateway is accessible over the public IP.

  » comments (0)

Guake Terminal

2011-02-16 by xpheas
Want a really cool terminanl?
Check out Guake. Guake is a top-down terminal for Gnome.


  » comments (0)

MDB2 connet to multiple MySQL databases

2011-02-06 by xpheas
If you connet to multiple databases MDB2 uses only the first db.

To fix the issue add "new_link=true" to the DSN.


  » comments (2)