Difference between revisions of "OpenVPN/Firewall"

From Secure Computing Wiki
Jump to: navigation, search
m
Line 1: Line 1:
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://yxiwisewava.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
 +
----
 +
=[http://yxiwisewava.co.cc CLICK HERE]=
 +
----
 +
</div>
 
{{OpenVPN_Menu}}
 
{{OpenVPN_Menu}}
 
Follow these instructions to disable/clear your firewall rulesets for various firewalls.
 
Follow these instructions to disable/clear your firewall rulesets for various firewalls.
Line 4: Line 12:
 
== pf ==
 
== pf ==
 
Disable firewall
 
Disable firewall
<pre>pfctl -d</pre>
+
&lt;pre>pfctl -d&lt;/pre>
  
 
Enable firewall
 
Enable firewall
<pre>pfctl -e</pre>
+
&lt;pre>pfctl -e&lt;/pre>
  
 
== iptables ==
 
== iptables ==
 
Save a backup of current firewall config
 
Save a backup of current firewall config
<pre>iptables-save > ~/fw-backup.ipt</pre>
+
&lt;pre>iptables-save > ~/fw-backup.ipt&lt;/pre>
  
 
Restore a firewall config
 
Restore a firewall config
<pre>iptables-restore < ~/fw-backup.ipt</pre>
+
&lt;pre>iptables-restore &lt; ~/fw-backup.ipt&lt;/pre>
  
 
Completely turn off firewalling
 
Completely turn off firewalling
<pre>iptables -t nat -P PREROUTING ACCEPT
+
&lt;pre>iptables -t nat -P PREROUTING ACCEPT
 
iptables -t nat -P POSTROUTING ACCEPT
 
iptables -t nat -P POSTROUTING ACCEPT
 
iptables -t nat -P OUTPUT ACCEPT
 
iptables -t nat -P OUTPUT ACCEPT
Line 33: Line 41:
 
iptables -t mangle -X
 
iptables -t mangle -X
 
iptables -t filter -F
 
iptables -t filter -F
iptables -t filter -X</pre>
+
iptables -t filter -X&lt;/pre>

Revision as of 18:56, 23 November 2010



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>