-
Recent Posts
Categories
- Android (80)
- Android Apps (74)
- Apache (4)
- Arch (10)
- Bill 'em (2)
- CentOS (20)
- Cisco (2)
- Development (12)
- DevOps (1)
- Dominion Companion (15)
- Fedora (20)
- Good Shepherd Knights of Columbus (2)
- Good Shepherd Online App (2)
- GS Chinese Auction (2)
- Guides (52)
- Hacks (10)
- Harptabs.com (68)
- Harptabs.com Mobile App (26)
- Landscaper Tracker (1)
- Linux (80)
- myCookieFortune.com (3)
- Networking (8)
- News (170)
- Our Apps (58)
- Payup (1)
- PHP IP Logger (6)
- Security (10)
- Time Off Tracker (6)
- Website Loader (1)
- Websites (20)
- Windows (3)
Tags
android apps arch setup authconfig basics beta Bill 'em bug fix dc default runlevel domain controller dominion companion draft email firewall FSMO harptabs Harptabs.com Harptabs.com Android App headless iptables Maintenance mobile mobile app mount pacman pam password password complexity PHP IP Logger QR run-level runlevel samba security shadow file ssh sshfs syntax highlighting terminal time off tracker update upgrade vi vimAds by Google
Join us on Facebook
Using iptables to route OpenVPN traffic
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.
DNF | Dandified Yum
Yum package manager is no more. DNF is it’s replacement in Fedora 22. DNF is a fork of yum so most of the commands are the same but they are just run in the background in a better way.
Source: DNF | Dandified Yum
Posted in Fedora
Leave a comment
Turn on IP Forwarding in Linux
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