You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a firewall on a debian machine preventing internet traffic through anything other than the TUN I have set up through openpvp, EXCLUDING local network traffic, so I can still SSH the box and theoretically should be able to access MiniDLNA:
#Allow loopback device (internal communication)
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
#Allow all local traffic.
iptables -A INPUT -s 192.168.1.0/24 -j ACCEPT
iptables -A OUTPUT -d 192.168.1.0/24 -j ACCEPT
#Allow VPN establishment
iptables -A OUTPUT -p udp --dport 1194 -j ACCEPT
iptables -A INPUT -p udp --sport 1194 -j ACCEPT
#Allow traffic to uk and hk PIA server to reconnect VPN in case of failure
iptables -A INPUT -s uk-london.privateinternetaccess.com -j ACCEPT
iptables -A OUTPUT -d uk-london.privateinternetaccess.com -j ACCEPT
iptables -A INPUT -s hk.privateinternetaccess.com -j ACCEPT
iptables -A OUTPUT -d hk.privateinternetaccess.com -j ACCEPT
#Allow traffic to PIA DNS
iptables -A INPUT -s 209.222.18.222 -j ACCEPT
iptables -A OUTPUT -d 209.222.18.222 -j ACCEPT
#Accept all TUN connections (tun = VPN tunnel)
iptables -A OUTPUT -o tun+ -j ACCEPT
iptables -A INPUT -i tun+ -j ACCEPT
#Set default policies to drop all communication unless specifically allowed
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
That script works great, I fire it on the servers bootup via /etc/rc.local (it's a debian system). But when I run DLNA that's in the sources.list, I can't connect to the server from other devices. Upon inspection of the logfile, I see something that I can readily make sense of.
[2014/10/18 19:53:29] minissdp.c:335: error: sendto(udp_notify=7, 192.168.1.2): Operation not permitted
I tried compiling but can't get things to work with the init script for some reason. Anyway, does anyone have any suggestions?
The text was updated successfully, but these errors were encountered:
I have a firewall on a debian machine preventing internet traffic through anything other than the TUN I have set up through openpvp, EXCLUDING local network traffic, so I can still SSH the box and theoretically should be able to access MiniDLNA:
That script works great, I fire it on the servers bootup via /etc/rc.local (it's a debian system). But when I run DLNA that's in the sources.list, I can't connect to the server from other devices. Upon inspection of the logfile, I see something that I can readily make sense of.
I tried compiling but can't get things to work with the init script for some reason. Anyway, does anyone have any suggestions?
The text was updated successfully, but these errors were encountered: