[arch-general] Openvpn Iptables

siefke_listen at web.de siefke_listen at web.de
Sat Nov 7 19:51:50 UTC 2015


Hello, 

i try to setup a openvpn server. The server and client communication is
successfully installed but the routing make trouble. 

Iptables:
#!/bin/bash

# reset
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -t raw -F
iptables -t raw -X
iptables -t security -F
iptables -t security -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

# openvpn
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
iptables -A INPUT -i tun+ -j ACCEPT
iptables -A FORWARD -i tun+ -j ACCEPT
iptables -A INPUT -i tap+ -j ACCEPT
iptables -A FORWARD -i tap+ -j ACCEPT

Has someone a idea how can routing all traffic through sever from clients?
The openvpn configuration is same like tutorial on wiki page from archlinux,
change only certifications path and ta key is activated. 

Thanks for help
----------------
Silvio Siefke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20151107/7bf5d4e1/attachment.asc>


More information about the arch-general mailing list