[App] Nat123 端口域名映射 服务器

来源:互联网 发布:淘宝主图视频自动播放 编辑:程序博客网 时间:2024/05/21 01:55

不知道公网ip,openvpn、pptp拨号无法联通怎么办。

有时候想在家办公就这么干!



注意:首先在http://www.nat123.com/上注册账号密码

服务端(Linux):

一、安装

1、安装mono

# rpm -ivhhttp://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm

#yum -y install mono-devel

#mono -V

Mono JIT compiler version 4.2.4 (tarball Mon Sep 19 02:09:55 UTC 2016)

Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.www.mono-project.com

        TLS:           __thread

        SIGSEGV:       altstack

        Notifications: epoll

        Architecture:  amd64

        Disabled:      none

        Misc:          softdebug

        LLVM:          supported, not enabled.

        GC:            sgen

 

2、安装nat123

#cd /usr/local/src/

#wget http://www.nat123.com/down/nat123linux.tar.gz

#mkdir /usr/local/nat123

#tar -zxf nat123linux.tar.gz -C /usr/local/nat123/

 

3、启动nat123

# screen -S nat123

# cd/usr/local/nat123

#mono nat123linux.sh           #mono  nat123linux.sh service        #用以前的账号密码登入

**********nat123 for linux***************

initing...

init sucess

loading login...

Thank you for using nat123linux(V3.150510)

please enter your nat123 username(enter x to exit):

x******    --nat123用户名

please enter your nat123 password(enter x to exit):

******    ---用户密码

logging,please wait!正在登陆,请稍候...

login success!登陆成功,映射服务后台运行中....

**********nat123 for linux***************

**********Thank you for using nat123

16-8-29 下05时05分39秒:nat123linux(V3.150510) service is running...

welcome for dapengniao!

remote manage nat or dns please visit http://www.nat123.com/

enter x to exit, Press Ctrl+a d(Hold Ctrl, in turn according to the A, D) to hide nat123 to backgroup

---运行成功正常后,按住Ctrl键,并依次先按A,再按D,退出当前窗口,提示显示为detached分开任务,不会关闭当前进程

 

[detached]

 

 

客户端(Win):

1win下安装nat123P2P访问者

过程略

 

2、使用

首先http://www.nat123.com/pages_33_439.jsp在用户中心 -端口映射添加

根据后面的?提示填写--保存


 

3、双击nat123P2P访问者

将刚才的域名与端口填写后 -点选允许使用局域网ip访问--添加访问


 

4、测试

telnet端口

阅读全文
0 0
原创粉丝点击