• Cert deleted before revocation - how to reimport?

    7
    0 Votes
    7 Posts
    2k Views
    S

    Thanks Jimp, much cleaner :-).

    You could probably do a job on this too.  It's a (very) basic perl script to identify user certs in a config.xml and dump them to separate files to make it easier to reintroduce a particular cert to the config.xml.  I'm putting it here in case it's useful to someone else.  It makes heavy assumptions about the config.xml structure and I don't know what quotemeta will do on a windows box so YMMV.  Written for clarity rather than efficiency.

    #!/usr/bin/perl use strict; use warnings; ## pfSenseUserCertDumper.pl ## Script to pull out user certs from a pfsense config backup. ## use as follows: ## ## perl pfSenseUserCertDumper.pl config.xml ## ## Output will be of the form certref.certdescription.usercert ## No provision has been made for multiple arguments my $line; my $cachecontents; my $certrefid; my $certdesc; my $certdumpfile; my $certdumpcontents; my $isusercert; my $filename = $ARGV[0]; open FILE,"<$filename" or die "Cannot read the file $filename: $!\n"; while ($line = <file>) {     if ($certdumpcontents)     {       # We are capturing contents, so append       $certdumpcontents.=$line;         if ($line =~ m/\<refid\>(.*?)\<\/refid\>\n/)         {                 # Capture cert ref for dump filename                 $certrefid =  $1;         }         if ($line =~ m/\[CDATA\[(.*?)\]/)         {                 # Capture cert desc for dump filename, quotemeta to deal with                 # special characters                 $certdesc = quotemeta $1;         }         if ($line =~ m/\<type\>user\<\/type\>\n/)         {                 # Not interested in non-user certs.  Set flag if user cert.                 $isusercert=1;         }     }     if ($line =~ m/\<cert\>\n/)     {         # Start of a cert.  Start capturing.         $certdumpcontents.=$line;     }     if ($line =~ m/\<\/cert\>\n/ && $certdumpcontents)     {         # End of cert data.         if ($isusercert)                 {                         $certdumpfile=$certrefid.'.'.$certdesc.'.usercert';                         open CERTDUMPFILE, ">$certdumpfile";                         print CERTDUMPFILE "$certdumpcontents";                         close CERTDUMPFILE;                         # Job done, turn off isusercert flag                         undef $isusercert;                 }         # Clear assigned variables ahead of next cert.         undef $certdumpfile;         undef $certrefid;         undef $certdesc;         undef $certdumpcontents;     } }</cert\></type\></refid\></file>

    Thanks again,

    Simon

  • TLS Error: TLS key negotiation failed to occur within 60 seconds

    3
    0 Votes
    3 Posts
    1k Views
    P

    Give some details of your setup. It seems strange that the client is trying to connect to 172.16.0.10:2000 - a private IP address. Are you doing some internal testing or?
    Where is the server listening?
    How does the public internet reach that?
    How did you setup the client?

  • Port Forwarding from VPN Provider…

    11
    0 Votes
    11 Posts
    12k Views
    K

    What do you mean by "internal torrent client"?
    I'd be interested in having a look at your scripting.

    Any chance you could post it?

  • OpenVPN Desktop Client with pfsense

    25
    0 Votes
    25 Posts
    5k Views
    P

    The new OpenVPN 2.3.5-I601, with OpenVPN Manager 0.0.3.6, is working fine for me on Windows 8.1

  • SOLVED Routing problems between OpenVPN and LAN servers.

    2
    0 Votes
    2 Posts
    915 Views
    A

    This problem was solved.

    The problem was that my Pfsense was installed in a Proxmox VM, whe I disabled hardware checksum offload all begin to works fine.

  • Openvpn to one inside ip-address

    6
    0 Votes
    6 Posts
    1k Views
    P

    Sorry I am NOOB… Is it any way to help me more... I need "barb wire" to guide me... ::)

  • Multiple VPN Servers

    5
    0 Votes
    5 Posts
    3k Views
    H

    So I followed your advice and some online tutorials and everything works great!

    From a security standpoint, would there be a reason to add an interface to the OpenVPN servers and enable Snort on them? Or would that be an overkill?

  • Limiting OpenVPN access

    2
    0 Votes
    2 Posts
    734 Views
    P

    Put rules on the irewall->Rules OpenVPN tab to allow only what you want, and the rest is blocked.
    If you want to give general internet access through the OpenVPN, then it might be easiest to make a rule list like:
    a) Allow to destination IP/ports that you want to open on your LAN.
    b) Block to destination LANnet (block the rest of the LAN)
    c) Allow all - let anything else in on the OpenVPN (internet in general)

  • PIA VPN client kills my OpenVPN server

    1
    0 Votes
    1 Posts
    635 Views
    No one has replied
  • How do I VPN only 1 host device?

    29
    0 Votes
    29 Posts
    5k Views
    K

    Could be - I know there is a problem with replies going out pver the same interfaces they come in on.
    I'm pretty excited about 2.2 once the bugs are worked out. 
    A well threaded pfsense will make a huge difference.

  • Route all openvpn traffic through a specific client's local gateway

    1
    0 Votes
    1 Posts
    611 Views
    No one has replied
  • Allow External FrootVPN (OpenVPN) access through Pfsense Firewall

    1
    0 Votes
    1 Posts
    726 Views
    No one has replied
  • OpenVPN continues to work even after it's terminated due to fatal error

    15
    0 Votes
    15 Posts
    11k Views
    C

    Pretty sure that's this scenario.
    https://redmine.pfsense.org/issues/3894

  • Vyprvpn Port Forwarding

    7
    0 Votes
    7 Posts
    4k Views
    K

    Good to know.

  • SIGTERM[hard,] received, process exiting

    1
    0 Votes
    1 Posts
    6k Views
    No one has replied
  • How do i make vpn clients be on the same subnet?

    13
    0 Votes
    13 Posts
    2k Views
    K

    Good idea.  Abit trickier to configure though.

  • Active directory authentication only works with new AD users

    4
    0 Votes
    4 Posts
    1k Views
    O

    Thanks for the reply.

    I did not change those settings as they did not make sense to me as I am no LDAP guru. I have now changed the settings to

    User naming attribute = samAccountName
    Group naming attribute = cn
    Group member attribute = memberOf

    and it works

    Thanks!!!

  • OpenVPN in PFSense on Amazon EC2

    2
    0 Votes
    2 Posts
    2k Views
    P

    Maybe you only have to allow traffic on the right ports on the EC2 instance… :P

  • Communication Branch Branch

    10
    0 Votes
    10 Posts
    1k Views
    W

    staff

    Set up branches of the network by adding another branch on Remote Network IPv4 / s field

    Ie was as follows,

    In branch A, put the remote network 192.168.1.0/24 Matrix and more affiliate network 192.168.2.0/24 B

    Now when I am in the branch and request ping from B affiliate network until it reaches the address of the VPN tunnel on the side of the Matrix, and after that he can not forward,

    What configuration is missing in the matrix or at the branch?

    Or am I doing something wrong?

    Thank you!

  • Restore to new box, OpenVPN certificates not working

    1
    0 Votes
    1 Posts
    458 Views
    No one has replied
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.