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).
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.
To access an internal machine on port 80 beind the gateway from outside I created the following forwarding rule (iptables).
BASH-Code:
| iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.100.50:80 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.
Guake Terminal
2011-02-16 by xpheasMDB2 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.
To fix the issue add "new_link=true" to the DSN.
CODE-Code:
| mysql://username:password@server/database?new_link=true |
