summaryrefslogtreecommitdiffstats
path: root/retiolum/doc/routing/tun
blob: a83ffc27995473019bfa9933ed1cf6152f3deb6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
tunneling:
ovpn relevant fixes:

    -up /etc/openvpn/update-resolv-conf
    -down /etc/openvpn/update-resolv-conf
    +#up /etc/openvpn/update-resolv-conf
    +#down /etc/openvpn/update-resolv-conf

    +route-nopull
    -redirect-gateway $def1
    -dev tun
    +dev $(your interfacename here)
    +dev-type tun

    -auth-user-pass
    +auth-user-pass $(your openvpn user_pass_file here)

normal firewall stuff:
    shorewall:
    in /etc/shorewall/interfaces
    +loc     $(interfacename)           detect          tcpflags,nosmurfs,routefilter,logmartians

ip+iptables
    iptables --table nat -A POSTROUTING -o $(your interfacename here) -j MASQUERADE
    ip route add table $(interfacename) via $(route -n | grep $(interfacename) | grep 0.0.0.0 | awk '{print $1}') dev $(interfacename)
    ip rule add $(your rule spec here) table $(interfacename)