Tag Archives: Ubuntu

Setup notes [ubuntu]: nginx + upstart php-cgi

Quick setup guide for serving php pages with nginx on Ubuntu Goal: serve phpmyadmin from the local machine from /opt/phpmyadmin answering to the domain http://phpmyadmin.local/ Used in this guide: Ubuntu 11.04 nginx 0.8.54 php5-cgi 5.3.5 phpmyadmin 3.4.5

Posted in Coding | Also tagged , , , | 3 Responses

Odd iproute2 gateway behavior with two gateways

After helping a frustrated yet patient Elvar I thought I better post about the situation we came across incase anybody else finds themselves in the same situation. Elvar started with all the correct elements to setup a functioning multrouting gateway. Two connections from two different providers, eth1, eth2. Running on an Ubuntu box with eth0 [...]

Posted in Server, Ubuntu | Also tagged , , | 3 Responses

Iptables packet flow diagram

Here is the diagram I keep stuck to my wall for reference when dealing with iptables. I cannot remember what site I used as a reference when creating the diagram. The original was an ascii chart though. This is created in dia and exported to pdf too. Both attached for convenience. CC licensed as long as the original [...]

Posted in Uncategorized | Also tagged , , | 1 Response

Multi gateway balancing with iptables

I have been testing load balancing via both iptables and ip route nexthop for a couple of days now.  They both work pretty well too. This only balances outgoing traffic as incoming traffic balanced via DNS RR and the firewall just returns the traffic on the interface it arrived on as per the previous post. [...]

Posted in Server, Ubuntu | Also tagged , , , , | 7 Responses

Multi gateway routing with iptables and iproute2

Notes on multi gateway routing with iptables and iproute2, suggestions and corrections gladly accepted. My notes may be incomplete or just plain wrong, I pieced them together after getting it working. Running on Ubuntu-9.10 with two internet connections ppp0 and ppp1 both with static IP’s from two different internet providers in Australia (iiNet and Internode). [...]

Posted in Server, Ubuntu | Also tagged , | 6 Responses