使用openwrt做网关路由器,会存在内网windows客户端 PPTP拨号无法连接外网pptp服务器的问题!错误号:619!
PPTP方式的VPN使用了GRE协议,这个协议跟TCP/UDP是同一级的协议。因为GRE协议没有端口的概念,LINUX不能像TCP/UDP那样IP伪装。所以,LINUX网关后面的pptp vpn客户机连接vpn时总会遇见这种那种的问题。
也就是所谓
pptp pass through
PPTP VPN协议 NAT穿透性问题!
参考:LINUX网关后面的pptp vpn客户机连接vpn:
详见:http://www.bizsn.com/info/a/fuwu ... 009/0917/15443.html
参考:http://technet.microsoft.com/zh-cn/library/bb877963.aspx

方法:
1、确保安装以下几个ipk包:  kmod-gre kmod-ipt-conntrack-extra kmod-ipt-nat-extra iptables-mod-conntrack-extra

2、防火墙添加以下规则(防火墙默认开放所有端口):
vi /etc/firewall.user:
iptables -t nat -I PREROUTING -p gre -j DNAT

意思是将所有的GRE包转发到pptp client IP 。注意:这个规则在重启防火墙后要过一段时间(2-3分钟)才起作用!


按照openwrt wiki上说的,安装kmod-ipt-nat-extra,可以解决内网多pptp客户端连接问题,未测试!!

来源:http://www.openwrt.org.cn/bbs/viewthread.php?tid=1456
越秀区租赁管理所和各街(镇)出租屋管理服务中心联系地址及联系电话


广州市房地产租赁管理所
  

越秀区豪贤路 193 号 15 楼
  

83189350

越秀区房地产租赁管理所
  

越秀区吉祥路 28 号 2 楼
  

83338037

越 秀 区  

人民街
  

越秀区一德路隆仁坊 12 号首层
  

83390713

流花街
  

越秀区解放北路桂花岗一街 8 号首层
  

86234791

东风街
  

越秀区西华路第一津街 50 号首层
  

81074475

洪桥街
  

越秀区东风中路 321 号二楼
  

83553914

广卫街
  

越秀区越华路 7 号首层
  

83640892

北京街
  

越秀区惠福东路龙藏街 15 号首层
  

83368709

六榕街
  

越秀区六榕路 133 号首层
  

83191482

诗书街
  

越秀区海珠中路七株榕乐安坊 2 号首层
  

81904763

大新街
  

越秀区大新路 257 号首层
  

81092848

光塔街
  

越秀区解放中路云台里 26 号 2 楼
  

83184676

矿泉街
  

越秀区沙涌南洪荫围 13 号三楼
  

36379957

大塘街
  

越秀区中山四路秉正街 17 号首层
  

83350595

华乐街
  

越秀区先烈南路青龙坊 114 号
  

87625411

梅花村
  

越秀区梅花路 6 号二楼
  

38627704

黄花岗街
  

越秀区先烈中路 84 号首层
  

37619431

农林街
  

越秀区中山一路 102 号
  

87608761

建设街
  

越秀区建设五马路 18 号
  

83766121

白云街
  

越秀区白云路筑南大街 8 号二楼
  

83884653

大东街
  

越秀区东川路东仁新街 8 号首层
  

83841598

珠光街
  

越秀区珠光路 54 号首层
  

83187432

东湖街
  

越秀区寺右北二街 26 号之一
  

87380801

登峰街
  

越秀区麓景路 55 号
  

83494189
在自己当前模板的css文件底部加入:
#an li {
float:left;
margin-right:20px;
padding-left:10px;
}
然后进入后台 -- 界面  -- 风格管理 -- 更新CSS缓存。

Ubuntu 上安装 pptp

[不指定 2010/12/02 14:57 | by Totti ]
1.首先到 /dev/ 和 /dev/net/ 下确认是否有 ppp 和 tun 两个设备

/dev/ppp
/dev/net/tun

2.安装 pptpd

apt-get install pptpd

无权限 SSH  账户创建方法

[不指定 2010/10/01 22:13 | by Totti ]
方法如下:
首先写一段shell
代码:
#!/bin/sh
echo ""
echo "  ********************************************************************"
echo "  *     welcome to http://bmforum.com- SSH Tunnel , press a key to exit.      *"
echo "  ********************************************************************"
echo ""
read x
exit

保存为: /bin/tunnel.sh
代码:
chmod 755 /bin/tunnel.sh   #加权限
useradd tunnel -g nobody -s /bin/tunnel.sh   #加用户
passwd tunnel  #给他个密码。
更新:Ubuntu下没有nobody组,请改为nogroup

删除账户使用命令
userdel [-r][用户帐号]
userdel可删除用户帐号与相关的文件。若不加参数,则仅删除用户帐号,而不删除相关文件。
-f 删除用户登入目录以及目录中所有文件。

Install Transmission on CentOS

[不指定 2010/10/01 13:07 | by Totti ]
I often use Transmission as my torrent client on my MacBook, so I tried to install it on my VPS. Downloading torrents on your VPS have many benefits. You will be seeding from your VPS instead of your home computer, so your home internet connection will not be slowed. You will also be able to start the torrent on the VPS at night, and download it in the morning. Anyways, here’s the direction to install Transmission on CentOS.

Install the Necessary Packages

Building Transmission requires the following packages, so you will need to download it from the yum repository.

gcc
cURL
libevent
intltool
gettext
yum install gcc curl curl-devel libevent libevent-devel intltool gettext

Download and Extract Transmission

The latest version of Transmission as of writing is 2.03. You can always grab the link to the latest version on Transmission’s download page. Note that the file name of the latest version may differ.

wget http://mirrors.m0k.org/transmission/files/transmission-2.03.tar.bz2Extract the package now:

tar -xvf transmission-2.03.tar.bz2Installing Transmission
To begin the installation, go inside the Transmission folder:

cd transmission-2.03Here’s the fun part. You’re going to run the configure script and make! Afterwards, you’ll just run make install and you’ll be done!

./configure -q && make -s
make install

Conclusion

Congratulations! You have successfully installed Transmission! Now, run the following command to view Transmission’s help guide:

transmissioncli -hI prefer Transmission over the variety of torrent clients, since Transmission uses much less memory and CPU that many others, and has a simple installation process. In a few days, I will go over the process of setting up Transmission’s web interface.

查看CentOS版本方法

[不指定 2010/09/26 14:48 | by Totti ]
有以下命令可以查看:

# lsb_release -a
LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5.5 (Final)
Release:        5.5
Codename:       Final


这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。


[root@us ~]# uname
Linux
[root@us ~]# uname -a
Linux 2.6.18-194.11.4.el5 #1 SMP Tue Sep 21 05:04:09 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux


以下二种方法适用于RedHat,CentOS


[root@us ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)
分页: 8/50 第一页 上页 3 4 5 6 7 8 9 10 11 12 下页 最后页 [ 显示模式: 摘要 | 列表 ]