论坛风格切换切换到宽版
  • 1192阅读
  • 2回复

[问题求助]WIN的VPN拨号后网关问题。 [复制链接]

上一主题 下一主题
 
发帖
1957
C币
-198861
威望
367
贡献值
1
银元
-3
铜钱
4483
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
用rh9做的ADSL 的NAT代理服务器..,内网用户通过它上网。服务器
然后在RH9上又.装了个pp.tpd,内网用户的网卡只是设置ip地址与子网掩码,再通过vpn拨号上网。    健康
问题就在这里:
win的网.关指向自己,居然也能上网,真是奇怪了。虚拟主机

1。WIN.客户拨号后的ipconfig           建材
C:\>ipconfi.g/all.



Windows 200.0 IP Configuratio.n[成人用品]



        Hos.t Name . . . . . . .. . . . . . : WH110    美容

        Primar.y DNS Suffix  . . .. . . . . :--- 印刷

        Node Type . . . . . . . .. . .. . . : Broadcast虚拟主机

        IP Routing Enabled. . . . . . . ... : No

        WINS Proxy Enabled. . . . . .. . . : No.             电子



Ethe.rnet adapter 本地连接:.



        Connection-specific DNS. Suffix  .. :.

        Desc.ription . . . . . . . . . . . : Realtek .RTL8139/810x .Family Fast Eth.

ernet NIC

        Physical Ad.dress. .. . . . . . . . : 00-03-0D-44-A4-FD健康

        DHCP E.nabl.ed. . . . . . . . . . . : No.

        IP Address. . . . . . . . . . . . : 10.2.54.254.1.35             电子

        Subn.et Mask . . . . . . . . . . . : .255.255.255.0外贸

        Default Gatewa.y .. . . . . . . . . :教育

   .     .DNS Servers . . . . . . . . . . . : 202.103.24.68<性病>



PPP adap.ter 虚拟专用连接:.



        Connection-speci.fic DNS Suff.ix  . :.

      .  Description . . . . . . . . . .. . : WAN (PPP/SLIP) Interface.

       . Physical Address. . . . . . . . . : 00-53-.45-00-00-00    外汇

        DHCP Enabl.e.d. . . . . . . . . . . : No            杀毒

        I.P Address. . . . . . . . . . . . : 19.2.168.0.100健康

       . Subnet Mask .. . . . . . . . . . . : 255.255.255.255             电子

        Defau.lt G.ateway . . . . . . . . . : 192.168.0.100投资

        DNS Servers . . .. . . . . . . . . : 202.103..24.68学习

                     .                       202.10.3.24.68.
复制代码
2..pptpd服务器的ifconfig服务器
p.pp0为ADSL拨号的接口。ppp.3为内网用户(我的机器)VPN拨号后产生的接口。服务器
[root@loc.alhost samples.]# ifconfig投资

eth0      Link encap:Ethernet  HWadd.r 00:05:5D:71:A7:7.B             电子

          UP BROADCAST RUNNING MULTICAST .. MTU:1500  Metric:1学习

          RX .packets:2622200 errors:0 dropped:0 overruns:0 fra.me:0健康

          TX p.ackets:1648354 errors:0 dropped:0 over.runs:0 carrier:0域名

        .  collisions:6867 txqueuel.en:100健康

          RX bytes:3379972671 (3223.3. Mb)  TX bytes:257596.686 (245.6 Mb)             汽车

          Interru.pt.:12 Base address:0xe800          婚庆



eth1      Link .encap:Ethernet  HWaddr 00:E0:4C:8.D:01:E4            杀毒

     .     inet addr:10.254.254.1  Bcast:10.255.255.255  .Mask:255.0.0.0(        游戏          )

          UP BROADCAST RUNNI.NG MULTICAS.T  MTU:1500  Metric:1[成人用品]

          RX packets:1767582 err.ors:0 dropped:0 overruns:0 frame:0..

          TX pac.kets:266.5438 errors:0 dropped:0 overruns:0 carrier:0           建材

     .     c.ollisions:0 txqueuelen:100学习

     . .    RX bytes:254028930 (242.2 Mb)  TX bytes:3395640733 (3238.3 Mb)           女人

          Interru.pt:5 B.ase address:0x9000.



eth1.:1    Link encap:Ethernet  .HWaddr 00:E0:4C:8D:01:E4[成人用品]

          inet addr:192.168..0.254  Bcast:192.168.0.255  Mask:255.2.55.255.0电脑

          UP BROADCAST RUNNING MULTICAST  MT.U:1500  Metr.ic:1

          RX packets:242.2 e.rrors:0 dropped:0 overruns:0 frame:0.

          TX packets:2455 errors:0 dropped:0 o.verruns.:0 carrier:0电影

   .       collisions:0 txqueuelen.:100              乙肝

      .    RX bytes:331112 (323.3 Kb)  TX .bytes:1579517 (1.5 Mb)(广告)

      .    Interrupt:5 Base address:0x900.0健康



lo    .    Link encap:Local L.oopback健康

          inet addr:127.0.0.1 . Mask:255..0.0.0学习

          UP L.OOPBACK RUNNING  MTU:16436  .Metric:1--- 印刷

          RX .packets:46 errors:0 dropped:0 overruns:0 frame.:0投资

          TX packets:46 errors:0 dro..pped:0 overruns:0 carrier:0           鲜花

.         collisions:0 txqueu.elen:0           建材

          RX by.tes:2436 (2.3 Kb)  TX bytes:2436 (2.3 Kb.)教育



ppp0      Link encap:P.oint-to-Point Protoco.l<性病>

          inet addr:61.18.3.73.48  P-t-P:20..2.103.26.152  Mask:255.255.255.255虚拟主机

          UP POINTOP.OINT RUNNING NOARP MULTICAST  MTU:1492  Me.tric:1.

          RX packets:2621725 errors:0 dr.opped:0 overruns:0 fra.me:0           女人

          TX .packets:1647874 errors:0 dropped:0 overruns:0 ca.rrier:0           鲜花

          collisions:0 txq..ueuelen:3.

          RX bytes:3322266103 (3168.3 Mb)  TX bytes:22132.8982 (211.0 Mb).教育



ppp3    .  Link encap:Point-to-.Point Protocol--- 印刷

          inet addr:192.1.68.0.254  P-t-P:19.2.168.0.100  Mask:255.255.2.55.255          婚庆

    .  .    UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1496  Metric:1.

    .      RX packets:2422 errors:0 dropped:0 overruns:0 fra.me:0(        游戏          )

          TX packets:2455. errors:0 dropped:0 overruns.:0 carrier:0           建材

     .     collisions:0 txqueuelen:.3[成人用品]

          RX bytes:331.112 (323.3 Kb)  TX bytes:1579517 (.1.5 Mb).
复制代码

现在的情况是.,WIN的网关是它自己,居然也能上.网,真是奇怪了。(广告)
附我的iptables

# Completed on Thu. Oct 12 .22:18:48 2006服务器

# Generated b.y iptables-save v1.2.7a on Thu Oct 12 2.2:18:48 2006电脑

*nat

:PR.EROUTING AC.CEPT [94044:6300308](广告)

:.POSTROUT.ING ACCEPT [51:24685]虚拟主机

:OUTPUT ACCE.PT [15673:962.631]             电子

-A PREROUTING -p tcp -m. tcp --dport 53. -j DNAT --to-destination :53           鲜花

-A .PREROUTING -p udp -m udp --dport 53 -j DNAT --t.o-destination :53--- 印刷

-A PR.EROU.TING -i ppp0 -p udp -m udp --dport 16881 -j DNAT --to-dest.ination 10.25.

4.254.35:16881

-A PREROUTING -i ppp.0 -p tcp -m tcp .--dport 16881 -j DNAT --to-de.stination 10.25    美容

4.254.35:16881

-A PRERO.UTING -s 10.254.254.0/255.255.255.0 -p tcp -m tcp --dp.ort 80 -j .REDIRECT              乙肝

--.to-ports 3128.

-A PREROUTING -s 10.254.254.0/2.55.255.2.55.0 -p tcp -m t.cp --dport 80 -j REDIRECT学习

--to-ports .3128.

-A POSTROUTIN.G -o ppp0. -j MASQUERADE健康

COMMIT

# Completed on. Thu Oct 12 22:18:4.8 2006虚拟主机
复制代码

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线kyabcd.
发帖
2041
C币
-235287
威望
375
贡献值
1
银元
-1
铜钱
4573
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
漏了一個WIN的路由表:

C:\>route print

===========================================================================

Interface List

0x1 ........................... MS TCP Loopback interface

0x1000003 ...00 03 0d 44 a4 fd ...... Realtek RTL8139/810x Family Fast Ethernet

NIC

0x14000004 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface

===========================================================================

===========================================================================

Active Routes:

Network Destination        Netmask          Gateway       Interface  Metric

          0.0.0.0          0.0.0.0    192.168.0.100   192.168.0.100       1

     10.254.254.0    255.255.255.0   10.254.254.135  10.254.254.135       1

     10.254.254.1  255.255.255.255   10.254.254.135  10.254.254.135       1

   10.254.254.135  255.255.255.255        127.0.0.1       127.0.0.1       1

   10.255.255.255  255.255.255.255   10.254.254.135  10.254.254.135       1

        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1

    192.168.0.100  255.255.255.255        127.0.0.1       127.0.0.1       1

    192.168.0.255  255.255.255.255    192.168.0.100   192.168.0.100       1

        224.0.0.0        224.0.0.0   10.254.254.135  10.254.254.135       1

        224.0.0.0        224.0.0.0    192.168.0.100   192.168.0.100       1

  255.255.255.255  255.255.255.255   10.254.254.135  10.254.254.135       1

Default Gateway:     192.168.0.100

===========================================================================

Persistent Routes:

  None
复制代码

离线wdyzl1.
发帖
1973
C币
-60986
威望
347
贡献值
1
银元
-2
铜钱
4370
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:
很垃圾的问题.
呵呵.看了一些资料,......
不过你们也不要不屑于回答呀.,我才学VPN的.................
痛苦.
错了也不教教.............
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个