Re: Openvpn Iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Did you enable ip forward?
# sysctl -w net.ipv4.ip_forward=1
Check it wit:
# sysctl net.ipv4.ip_forward

Regards,
Chris

Am 07.11.2015 um 20:51 schrieb siefke_listen@xxxxxx:
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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux