Arch Linux

Using iptables to route OpenVPN traffic
avatar

To have your vpn traffic be able to reach the internet you just need to add the following iptable rules:

iptables -A FORWARD -i tun0 -j ACCEPT
iptables -A FORWARD -i tun0 -o eth0 -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o tun0 -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE

This would take the tunnel adapter of tun0 and route the traffic through eth0 for the vpn subnet of 192.168.0.0.

Posted in Arch, CentOS, Fedora, Guides, Linux, Networking | Tagged , | Leave a comment

Turn on IP Forwarding in Linux
avatar

By default for security reasons IP forwarding is turned off.  If you are setting up a router or a vpn gateway you will need to turn it back on.  You can just run the following command to turn it on.

echo 1 > /proc/sys/net/ipv4/ip_forward

 

Posted in Arch, CentOS, Fedora, Guides, Linux, Networking | 1 Comment

Lifehacker Arch Tutorial
avatar

Build a Killer Customized Arch Linux Installation and Learn All About Linux in the Process.

Posted in Arch, Guides | Leave a comment

Extract the audio from a flash video
avatar

Extract the audio from a flash video.

ffmpeg -i video.flv -acodec copy track.mp3

Posted in Arch, CentOS, Fedora, Guides, Linux | Tagged , | Leave a comment

Build a Killer Customized Arch Linux Installation and Learn All About Linux in the Process
avatar

This is a nicely written guide for people looking to getting started with Arch Linux.

Build a Killer Customized Arch Linux Installation and Learn All About Linux in the Process.

Posted in Arch, Guides, Linux | Tagged , , | Leave a comment