mdsh.com/wiki


RecentChanges

TextFormattingRules
AllWikiTopics
OrphanedWikiTopics
ToDoWikiTopics
WikiLockList
RSS
Export2HTML

WikiSearch

SetUsername

StartingPoints
Home

Back to VPN:OpenVPN.

Diff VPN:OpenVPN

Line 155:
 route 10.20.30.0 255.255.255.0}}}  route 10.20.30.0 255.255.255.0}}}
      
  +If you want to run a script when the tunnel comes up, such as a firewall configuration, then add these two lines:
  +  
  +{{{script-security 2 # Allow calling of built-in executables and user-defined scripts
  +up /etc/openvpn/client.up}}}
  +  
  +The client.up script could be something like this:
  +  
  +{{{#!/bin/bash
  +  
  +/usr/share/firewall/bin/IPv4 > /tmp/openvpn.client.firewall.log 2>&1}}}
  +  
  +  
Line 160:
 service openvpn restart # Ubuntu}}}  service openvpn restart # Ubuntu}}}
      
-Did you remember to exit from the root shell on your client? +Did you remember to exit from the root shell on your client?


VeryQuickWiki Version 2.8.1 | Admin

All contents copyright mdsh.com (C) 2011-2023.