Here is the configuration for my multihome Linux, Fedora 20, server. This is my "everything" server. I use it for SSH, HTTPS, MediaTomb, Firewall/Router (iptables), DHCP, DNS.....everything:
eth0 == External ISP IP, let's just say: X.X.X.X
eth1 == Internal LAN: 192.168.10.1 255.255.255.0 (all my PCs in my house go to/through this interface)
tun0 == 10.8.0.1 255.255.255.255
server.conf:
Code: Select all
port 1194
proto udp
dev tun
multihome
tls-server
ca keys/ca.crt
cert keys/lup64.crt
key keys/lup64.key
dh keys/dh1024.pem
mode server
ifconfig 10.8.0.1 10.8.0.2
ifconfig-pool 10.8.0.4 10.8.0.255
route 10.8.0.0 255.255.255.0
keepalive 10 60
inactive 600
comp-lzo
user openvpn
group openvpn
persist-tun
persist-key
verb 3
log-append /var/log/openvpn.log
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 10.8.0.1"
Code: Select all
allow-query { localhost; 192.168.10.0/24; 10.8.0.0/24;};
listen-on port 53 { 127.0.0.1; 192.168.10.1; 10.8.0.1;};
Code: Select all
client
proto udp
remote X.X.X.X
port 51194
dev tun
nobind
comp-lzo
verb 3
Code: Select all
default via X.X.0.1 dev eth0
10.8.0.0/24 via 10.8.0.2 dev tun0
10.8.0.2 dev tun0 proto kernel scope link src 10.8.0.1
X.X.0.0/19 dev eth0 proto kernel scope link src X.X.X.X
169.254.0.0/16 dev eth0 scope link metric 1002
169.254.0.0/16 dev eth1 scope link metric 1003
192.168.10.0/24 dev eth1 proto kernel scope link src 192.168.10.1
Code: Select all
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
29 2455 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
716 38160 ACCEPT all -- eth1 * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- tun0 * 0.0.0.0/0 0.0.0.0/0
37 13983 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
0 0 ACCEPT udp -- eth0 * 0.0.0.0/0 X.X.X.X udp dpt:1194
2 770 DROP all -- eth0 * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 227 packets, 81683 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 1098 packets, 1506K bytes)
pkts bytes target prot opt in out source destination
Now, for some unknown reason, I can no longer get a reply when I ping 192.168.10.1. I can still ping 10.8.0.1, but not eth1 interface. I also can not get to MediaTomb. I can still SSH to 10.8.0.1, but it seems like all routes to 192.168.10.1 have stopped. Which, obviously, means I can not get to any of the other desktops in my house: 192.168.10.5, 192.168.10.10, etc. Very confused, as this was working just fine. I didn't change anything, so not sure what/why this just stopped working.
Am I missing something simple?
TIA,
-Lup