Tested with:
v1.9.7+hotfix.4, Wave G in Seattlev1.10.5, Comcast in the South Bay Area
set interfaces ethernet eth0 description LAN
set interfaces ethernet eth1 description WAN
set interfaces ethernet eth2 description WLAN
| 1 b java.lang.String::charAt (33 bytes) | |
| 2 b java.lang.Math::max (11 bytes) | |
| 3 b java.util.jar.Manifest$FastInputStream::readLine (167 bytes) | |
| 4 b sun.nio.cs.UTF_8$Decoder::decodeArrayLoop (553 bytes) | |
| 5 b java.util.Properties$LineReader::readLine (383 bytes) | |
| 6 b java.lang.String::hashCode (60 bytes) | |
| 7 b java.lang.String::indexOf (151 bytes) | |
| 8 b sun.nio.cs.ext.DoubleByteDecoder::decodeSingle (10 bytes) | |
| 9 b java.lang.String::lastIndexOf (156 bytes) | |
| 10 b java.lang.String::replace (142 bytes) |
| 1) Load the u3g(4) driver: | |
| # kldload u3g | |
| # kldstat | |
| Id Refs Address Size Name | |
| ... | |
| 7 1 0xffffffff81b6e000 5ffb u3g.ko | |
| 2) Set the driver to load at boot: |
| # with dig (fastest way) | |
| dig +short myip.opendns.com @resolver1.opendns.com; | |
| # alternative | |
| dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}'; | |
| ###################################################################################################### | |
| ## Other method with curl / get and 3rd party, this choice is less judicious | |
| ###################################################################################################### | |
| # with curl |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/encoding/ AnyConnectProfile.xsd"> | |
| <ClientInitialization> | |
| <UseStartBeforeLogon UserControllable="false">false</UseStartBeforeLogon> | |
| <StrictCertificateTrust>false</StrictCertificateTrust> | |
| <RestrictPreferenceCaching>false</RestrictPreferenceCaching> | |
| <RestrictTunnelProtocols>IPSec</RestrictTunnelProtocols> | |
| <BypassDownloader>true</BypassDownloader> | |
| <WindowsVPNEstablishment>AllowRemoteUsers</WindowsVPNEstablishment> |
| #!/bin/sh | |
| ################################################################## | |
| ################################################################## | |
| # | |
| # The FreeBSD System Hardening Script | |
| # David Childers - 15 February, 2010 | |
| # | |
| # This software is released under the Attribution-ShareAlike version 3.0 Licence. | |
| # www.creativecommons.org/licenses/by-sa/3.0/ | |
| # |
| #满足了一下自己的搜集癖,搜集了不少可以用来查询外网IP的网址和方法。 | |
| #国内某网站的接口,只返回IP | |
| curl ip.6655.com/ip.aspx | |
| curl whatismyip.akamai.com | |
| curl ipip.net | |
| #更多用法访问ifconfig.co | |
| wget -qO - ifconfig.co | |
| " Mac OS X (requires curl) | |
| " ------------------------ | |
| command! -range=% SP <line1>,<line2>w !curl -F 'sprunge=<-' http://sprunge.us | tr -d '\n' | pbcopy | |
| command! -range=% CL <line1>,<line2>w !curl -F 'clbin=<-' https://clbin.com | tr -d '\n' | pbcopy | |
| command! -range=% VP <line1>,<line2>w !curl -F 'text=<-' http://vpaste.net | tr -d '\n' | pbcopy | |
| command! -range=% PB <line1>,<line2>w !curl -F 'c=@-' https://ptpb.pw/?u=1 | tr -d '\n' | pbcopy | |
| command! -range=% IX <line1>,<line2>w !curl -F 'f:1=<-' http://ix.io | tr -d '\n' | pbcopy | |
| command! -range=% EN <line1>,<line2>w !curl -F 'file=@-;' https://envs.sh | tr -d '\n' | pbcopy | |
| command! -range=% XO <line1>,<line2>w !curl -F 'file=@-' https://0x0.st | tr -d '\n' | pbcopy | |
| command! -range=% TB <line1>,<line2>w !nc termbin.com 9999 | tr -d '\n' | pbcopy |
| IPv4 Addr | IPv6 Addr | ASn | Political Region | Loc | Svc | Org |
|---|---|---|---|---|---|---|
| 8.8.8.8 | 2001:4860:4860::8888 | AS15169 | US | Worldwide (Anycast) | Google Public DNS | |
| 8.8.4.4 | 2001:4860:4860::8844 | AS15169 | US | Worldwide (Anycast) | Google Public DNS | |
| 1.1.1.1 | 2606:4700:4700::1111 | AS13335 | US | Worldwide (Anycast) | Cloudflare-DNS | Cloudflare/APNIC |
| 1.0.0.1 | 2606:4700:4700::1001 | AS13335 | US | Worldwide (Anycast) | Cloudflare-DNS | Cloudflare/APNIC |
| 95.85.95.85 | 2a03:90c0:999d::1 | AS199524 | EU | *W |