vpn

Connecting to a VPN without installation of client software

两盒软妹~` 提交于 2019-11-28 20:48:15
I must sometimes write software to establish a socket with a particular server residing within a Cisco VPN. I simply write my software as if there were no VPN (making use of the standard sockets library). When it is time to run this program, I manually connect to the VPN using the client software installed on my computer, then run the program itself. However, it would be desirable to write the software to take advantage of a specialized socket library capable of communicating over the VPN directly, without the use of any installed client software. Here is some Java code illustrating the

Create VPN profile on Android

断了今生、忘了曾经 提交于 2019-11-28 19:54:34
Is it possible to programmatically create VPN profile on Android (assuming that I have a rooted device)? If is possible, how? Thanks. Muggles Merriweather You should look at the com.android.settings.vpn2 package. There it uses the @hidden KeyStore methods to manipulate VPNs: KeyStore.getInstance().saw(Credentials.VPN) returns an array of String VPN IDs VpnProfile.decode(KeyStore.getInstance().get(Credentials.VPN + vpn_id)) gets the VPN configuration data for the given VPN ID and decodes it as a VpnProfile object. VpnProfile.put(Credentials.VPN + vpn_id, someVpnProfileInstance.encode()) will

Establish a VPN connection in cmd

☆樱花仙子☆ 提交于 2019-11-28 18:36:16
How can I create a VPN connection with an arbitrary server using an arbitrary protocol in Windows cmd ? I know this is a very old thread but I was looking for a solution to the same problem and I came across this before eventually finding the answer and I wanted to just post it here so somebody else in my shoes would have a shorter trek across the internet. ****Note that you probably have to run cmd.exe as an administrator for this to work** So here we go, open up the prompt (as an adminstrator) and go to your System32 directory. Then run C:\Windows\System32>cd ras Now you'll be in the ras

(转) 很实用的网络技术方案

自闭症网瘾萝莉.ら 提交于 2019-11-28 17:36:23
建议直接看原帖 http://blog.chinaunix.net/uid-15790905-id-5169813.html 题记: 在大公司,想吃鸡蛋就有鸡蛋;在小公司,想吃鸡蛋你得先养一只鸡。。 原本,我只是想把内部的系统域名变成内网域名,毕竟把监控、部署系统以及中控机的地址暴露在公网总感觉不踏实。 但问题来了,挖掘机技术... 说错,在家怎么访问阿里云的内网地址呢? 嗯,可以用VPN,但VPN完全没搞过啊,我想我是被前厂惯坏了.. 我们的公司现状: 1. 线上服务器托管在阿里云上 2. 办公网有部分机器,提供svn, 编译等服务 3. 在家不能上办公网,想提几行代码,不好意思,去趟公司吧 4. 在家/在公司都不能直接访问阿里云的内网(10.x.x.x)地址,我们都是公网地址,囧 整理并细化我的需求: 1. 在家 连接vpn能访问办公网(172网段) 2. 在家/在公司 连接vpn能直接访问阿里云内网服务和机器(10网段) 3. 访问办公网和阿里云两个局域网地址只需要连一次vpn 4. vpn通过用户名和密码登陆 设计方案: 需要连两个vpn(办公网一个、阿里云一个)的方案直接fail, 不要搞那么复杂。 希望可以是这样的,YY图如下, 技术选型: openvpn 核心技术: 虚拟网卡,隧道,iptables,ssl 补充说明: 整个方案亲测有效,摸索了很久,各种中英文搜索

像修改本机代码一样修改远端服务器的PHP网站

半腔热情 提交于 2019-11-28 15:24:11
映射vps目录到自己电脑的摸索记录 最近拿discuz做了一个网站,需要修改模板文件之类的,还需要调试微信和QQ登陆的接口。都是些位置零散的小修改,但是有些需要在线上才能调试(QQ微信的oauth登陆,各种插件)。为了方便开发,我打算在阿里云的centos服务器上安装一个vpn和smb服务,然后在我的开发机上连接VPN并创建网络磁盘映射。 实验环境: 服务端 阿里云centos7服务器 客户端 普通的windows 10操作系统 实验过程: 1、PPTP VPN(不稳定因而丢弃,您可以跳过pptp,直接使用smba+openvpn达到效果) 找了一个一键安装pptpd vpn的脚本 默认配置就可以让pptpd跑通 中间忘记了阿里云的centos7默认使用的是firewalld这个服务的防火墙,后来 systemctl stop firewalld systemctl disable firewalld 关闭了防火墙,仅用阿里云轻量级服务器的防火墙开通相应端口。这里找到firewalld服务花了点时间。pptp连接建立 2、在centos7上安装smba服务 smba服务是用来在linux操作系统上共享文件或者目录到windows网络的服务。也就是在linux上安装了之后可以指定某些文件夹共享到局域网

how to set up a vpn connection programmatically in MAC?

与世无争的帅哥 提交于 2019-11-28 12:19:21
after searching for a while i found that the only best source available to establish a vpn connection programmatically in mac is at http://lists.apple.com/archives/Macnetworkprog/2011/May/msg00032.html but i was struck at the 5th point while coding which says about kSCNetworkProtocolTypePPP and there is no such thing... has anybody done it as shown in the above link or is there any other source available...? but i was struck at the 5th point while coding which says about kSCNetworkProtocolTypePPP and there is no such thing... There is no need to fetch the PPP protocol, you can apply the

ENSP实现MPLS VPN

亡梦爱人 提交于 2019-11-28 08:02:53
MPLS(多协议标签交换): 多协议 :指可以基于多种不同的3层协议来生成2.5层的标签信息。 标签交换 :数据包在进入到MPLS域后,将在第2层和第3层中间压入标签号,使得域内的路由器在转发该数据包时,基于2.5层标签号仅需查询本地的一张FIB表(标签转发信息数据库)。意义在于更快的查询,提高工作效率。 当下MPLS存在的意义: 1:解决BGP的路由黑洞问题。 MPLS协议会让路由器在访问BGP路由目标网段时,在流量中压入到达这些网段的BGP下一跳设备地址的标签号,来穿越中间没有运行BGP协议的设备,实现打破BGP路由黑洞的问题。 注:MPLS打破BGP路由黑洞的方案是目前最合适的方案。 2:实现MPLS VPN。 3:进行MPLS TE(流量 工程)。 MPLS VPN的工作过程: 1:CE端将私有路由传递到PE端。 2:PE端在收到不同CE发送过来的相同网段路由时,使用RD值来进行区分。格式:X.X(32位)。 3:PE端将附上RD的私有路由防止到对应的VRF空间内,之后再将路由附上RT值,用于传递到对端PE设备。对端通过:VPNV4路由=普通IPV4路由+RD+RT 来区分不同的路由信息。 4:VPNV4路由需要MP-BGP来进行传递;对端基于RT值,将路由装载到对应的VRF空间内,再共享给对应的CE端。 5:控制层面工作完成后,数据层面需要基于MPLS来工作

Not connecting to SQL Server over VPN

偶尔善良 提交于 2019-11-28 06:00:31
I have connected for the first time to an existing network over VPN. I can ping the IP address which is used by the SQL Server from the VPN client, but SSMS does not connect to the SQL Server. I am using the right login id and password. Why could this happen ? Any ideas ? Thanks On a default instance, SQL Server listens on TCP/1433 by default. This can be changed. On a named instance, unless configured differently, SQL Server listens on a dynamic TCP port. What that means is should SQL Server discover that the port is in use, it will pick another TCP port. How clients usually find the right

Is there a way of getting ConnectionStatus from IVpnProfile in a UWP application?

微笑、不失礼 提交于 2019-11-28 03:17:19
问题 I have the following WinRT code which works fine to discover active VPN Profiles: VpnManagementAgent vpn; auto profiles = vpn.GetProfilesAsync().get(); wprintf(L"Found %d profiles\n", profiles.Size()); for (auto vp : profiles) { wprintf(L"Found profile %s\n", vp.ProfileName().c_str()); } I would like to check the ConnectionStatus but this is not available on the IVpnProfile interface. I have tried adding the following to no avail as ConnectionStatus is available in the concrete

IOS cannot set VPN programmatically

喜夏-厌秋 提交于 2019-11-28 01:57:49
问题 Kindly asking for help - I've tried to implements things, described in this great post; also I've read tons of different info on internet - but I still can't create VPN and make it work. I've tried also to download ready .mobileconfig files - they are installed ok, but I'm not able to manage them from my app. If possible - can you share working code? Certainly, without your credentials - I'll replace them with my one's. What do I need - simple app, that allows to install/edit and enable