This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > /etc/ipsec.conf <<EOF | |
# ipsec.conf - strongSwan IPsec configuration file | |
# basic configuration | |
config setup | |
# strictcrlpolicy=yes | |
# uniqueids = no | |
# Add connections here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@build0:~# iptables-save | | |
# Generated by iptables-save v1.6.0 on Mon Jun 4 13:09:46 2018 | |
*mangle | |
:PREROUTING ACCEPT [3377:505018] | |
:INPUT ACCEPT [2933:319164] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [2784:2661858] | |
:POSTROUTING ACCEPT [2779:2661713] | |
-A PREROUTING -m policy --dir in --pol ipsec -j NFLOG --nflog-group 5 | |
-A POSTROUTING -m policy --dir out --pol ipsec -j NFLOG --nflog-group 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@build0:~# iptables-save | grep nflog | |
-A PREROUTING -m policy --dir in --pol ipsec -j NFLOG --nflog-group 5 | |
-A POSTROUTING -m policy --dir out --pol ipsec -j NFLOG --nflog-group 5 | |
-A INPUT -m addrtype ! --dst-type LOCAL -m policy --dir in --pol ipsec -j NFLOG --nflog-group 5 | |
-A INPUT -m addrtype --dst-type LOCAL -m policy --dir in --pol ipsec -j NFLOG --nflog-group 5 | |
-A INPUT -p udp -m multiport --dports 500,4500 -j NFLOG --nflog-group 5 | |
-A INPUT -p ah -j NFLOG --nflog-group 5 | |
-A INPUT -p esp -j NFLOG --nflog-group 5 | |
-A OUTPUT -m policy --dir out --pol ipsec -j NFLOG --nflog-group 5 | |
-A OUTPUT -p udp -m multiport --dports 500,4500 -j NFLOG --nflog-group 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipcp-accept-local | |
ipcp-accept-remote | |
refuse-eap | |
require-chap | |
noccp | |
noauth | |
debug | |
dump | |
mtu 1280 | |
mru 1280 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cjac@wanjet1:~$ grep -e six /etc/udev/rules.d/70-persistent-net.rules | |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="52:54:00:b8:48:b9", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="six" | |
# USB device 0x:0x (asix) | |
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="52:54:00:b8:48:b9", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="six" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> /etc/systemd/network/10-int.link <== | |
[Match] | |
MACAddress=52:54:00:42:9e:e1 | |
[Link] | |
Name=int | |
==> /etc/systemd/network/10-loc.link <== | |
[Match] | |
MACAddress=52:54:00:e6:24:58 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1 | |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
2: int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 | |
link/ether 52:54:00:42:9e:e1 brd ff:ff:ff:ff:ff:ff | |
3: loc: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 | |
link/ether 52:54:00:e6:24:58 brd ff:ff:ff:ff:ff:ff | |
4: mbc: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 | |
link/ether 52:54:00:ab:1a:1b brd ff:ff:ff:ff:ff:ff | |
5: six: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 | |
link/ether 52:54:00:b8:48:b9 brd ff:ff:ff:ff:ff:ff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Setup.pl b/src/Setup.pl | |
index a924d07..851b373 100644 | |
--- a/src/Setup.pl | |
+++ b/src/Setup.pl | |
@@ -109,13 +109,13 @@ sub setup { | |
$param{'maxKeySize'} ||= 30; # maximum LHS length | |
$param{'maxDataSize'} ||= 200; # maximum total length | |
- if (!defined(@verb)) { | |
+ if (!@verb) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cjac@probook0:~/auth/msdn$ gpg --fingerprint 4B3C5299 | |
pub rsa4096 2015-06-18 [SC] | |
2280 8347 E0DF BB44 0998 6901 C0DB 8ACD 4B3C 5299 | |
uid [ unknown] C.J. Collier <[email protected]> | |
uid [ unknown] C.J. Collier (Work) <[email protected]> | |
sub rsa4096 2015-06-18 [E] | |
sub rsa4096 2017-03-28 [A] [expires: 2027-03-26] | |
sub rsa4096 2017-03-28 [S] [expires: 2027-03-26] | |
sub rsa4096 2017-03-28 [E] [expires: 2027-03-26] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\Users\Administrator> type .\test-pywin32.py | |
#try: | |
import msvcrt | |
import win32api | |
import win32con | |
mvcrt.get_osfhandle | |
win32api.SetHandleInformation | |
win32con.HANDLE_FLAG_INHERIT | |
#except ImportError(e): | |
# print \ |