OpenVPN/Firewall

From Secure Computing Wiki
Revision as of 18:56, 23 November 2010 by Esubiguxoc (Talk | contribs)

Jump to: navigation, search


Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page


CLICK HERE


OpenVPN Topics

GENERAL: RoutingRIP RoutingBridgingFAQFirewallVPN ChainingHigh-AvailabilityTroubleshootingDonationsIRC meetingsDeveloper DocsTester Docs
OS RELATED: FreeBSD Routed FreeBSD Bridged

Follow these instructions to disable/clear your firewall rulesets for various firewalls.

pf

Disable firewall <pre>pfctl -d</pre>

Enable firewall <pre>pfctl -e</pre>

iptables

Save a backup of current firewall config <pre>iptables-save > ~/fw-backup.ipt</pre>

Restore a firewall config <pre>iptables-restore < ~/fw-backup.ipt</pre>

Completely turn off firewalling <pre>iptables -t nat -P PREROUTING ACCEPT iptables -t nat -P POSTROUTING ACCEPT iptables -t nat -P OUTPUT ACCEPT iptables -t mangle -P INPUT ACCEPT iptables -t mangle -P OUTPUT ACCEPT iptables -t mangle -P FORWARD ACCEPT iptables -t mangle -P PREROUTING ACCEPT iptables -t mangle -P POSTROUTING ACCEPT iptables -t filter -P INPUT ACCEPT iptables -t filter -P OUTPUT ACCEPT iptables -t filter -P FORWARD ACCEPT iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle -X iptables -t filter -F iptables -t filter -X</pre>