|
shifuquan
初级用户
 
积分 64
发帖 25
注册 2006-11-9
状态 离线
|
『楼 主』:
■上传文件到FTP(此FTP电脑通过路由器上网)■
使用 LLM 解释/回答一下
大家好,又来给你们添麻烦了~~~~
对方的电脑从别的城市访问我的FTP电脑,但我家里的FTP电脑经过路由器上网的(最近买的路由器,2家人用1根ADSL线,以前我1个人直接拨号上网的,那时对方可以访问我的电脑,但用了路由器后,不行了)
现在该怎么编辑这个BAT,能让对方电脑顺利访问我的FTP电脑
劳驾各位
Last edited by shifuquan on 2006-11-19 at 05:37 PM ]
Hello everyone, here I come to trouble you again~~~~
The other party's computer accesses my FTP computer from another city, but my home FTP computer accesses the Internet through a router (recently bought router, two families use one ADSL line, previously I dialed up to access the Internet alone, at that time the other party could access my computer, but after using the router, it doesn't work)
Now how to edit this BAT so that the other party's computer can access my FTP computer smoothly
Please help everyone
Last edited by shifuquan on 2006-11-19 at 05:37 PM ]
|
|
2006-11-20 02:18 |
|
|
shifuquan
初级用户
 
积分 64
发帖 25
注册 2006-11-9
状态 离线
|
『第 2 楼』:
有人在吗?大家帮下忙啊
使用 LLM 解释/回答一下
有人在吗?大家帮下忙啊
Is anyone there? Everyone, help out a bit
|
|
2006-11-20 03:10 |
|
|
aqjazz
新手上路

积分 4
发帖 2
注册 2006-7-16
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
看不明白你说的什么意思 !
I can't understand what you mean!
|
|
2006-11-20 03:59 |
|
|
KIKOOOO
初级用户
 
积分 34
发帖 12
注册 2006-9-25
状态 离线
|
|
2006-11-20 04:31 |
|
|
shifuquan
初级用户
 
积分 64
发帖 25
注册 2006-11-9
状态 离线
|
『第 5 楼』:
我说点详细点吧
使用 LLM 解释/回答一下
论坛上都是1个电脑直接访问另1个电脑(点对点),没有“经过路由器的BAT编辑”文章,也就是说关于上传文件到FTP里面去,如果FTP那方用了路由器该怎么办????
The forums are all about one computer accessing another directly (peer - to - peer), and there are no articles about "BAT editing through routers". That is to say, if the FTP side uses a router, what should be done?
|
|
2006-11-20 04:36 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
访问FTP和安装了路由器有什么关系?
只要把FTP地址给他访问不就行了?
What is the relationship between accessing FTP and installing a router?
Just let him access the FTP address, right?
|
|
2006-11-20 04:48 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
LZ的标题比较强悍~
The title of LZ is quite powerful~
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-11-20 04:58 |
|
|
shifuquan
初级用户
 
积分 64
发帖 25
注册 2006-11-9
状态 离线
|
『第 8 楼』:
不行的,用了路由器就上传不了
使用 LLM 解释/回答一下
不行的,FTP的机子用了路由器,下面的机子(别的城市)上传不过来的
It doesn't work. The FTP machine uses a router, and the machines below (in other cities) can't upload.
|
|
2006-11-20 05:35 |
|
|
kht000
初级用户
 
积分 45
发帖 14
注册 2006-9-12
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
那就修改路由器嘛
映射IP啊
Then modify the router. Map the IP.
|
|
2006-11-20 05:54 |
|
|
shifuquan
初级用户
 
积分 64
发帖 25
注册 2006-11-9
状态 离线
|
|
2006-11-20 06:27 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
你要在路由上映射端口才可以,和对方关系不大啊
You need to map ports on the router, which has little to do with the other party.
|
|
2006-11-20 06:59 |
|
|
shifuquan
初级用户
 
积分 64
发帖 25
注册 2006-11-9
状态 离线
|
『第 12 楼』:
谢谢大家的点化和支持!!!!!!!!!!!
使用 LLM 解释/回答一下
继续革命
Last edited by shifuquan on 2006-11-19 at 08:40 PM ]
Continuing the Revolution
Last edited by shifuquan on 2006-11-19 at 08:40 PM ]
|
|
2006-11-20 08:29 |
|
|
3742668
荣誉版主
      
积分 2013
发帖 718
注册 2006-2-18
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
如楼上各位所说,你的问题关键在于端口映射,这个需要在你的路由上设置,或者下载个类似“花生壳”之类的东东来解决。
至于路由的设置,如果你的路由器采用的是viking的fw,可以参考的一些内容。不过你说你新买的路由器,我想可能不会是采用viking的fw的。
附录:
部分Telnet命令:(主要针对是Vinking系列芯片)
MAC地址列表清除:
运行CMD,输入arp -d回车
备份FW:
tftp -i 192.168.1.1 get TEimage.bin
升级FW:
tftp -i 192.168.1.1 put TEimage.bin
TELNET的方法设置:
登陆端口设置
modify nbsize httpport <decvalue>
modify nbsize telnetport <decvalue>
modify nbsize ftpport <decvalue
关闭SNMP
modify snmp trap disable
如果这样关闭不彻底,用扫描器仍能发现SNMP漏洞,最好加上下面两句:
$delete snmp comm community private
$delete snmp comm community public
telnet控制台修改MTU值:
modify ppp intf ifname ppp-0 mtu 1480
ifconfig eth0 mtu 14xx (Linux Shell)
设置VPI和VCI值(由ADSL运营商提供,假设:VPI为0,VCI为 33)
add interface atmpvc
set interface atmpvc0 vpi 0
set interface atmpvc0 vci 33
指定线路模式(假设为 2:G.dmt)
set interface adsl standard 2
设置封装类型(5为PPPOE)
set interface atmpvc0 encap 5
设置拨号时的用户名和密码(由ADSL运营商提供,假设:用户名为adsl,密码
为adsl)
set interface atmpvc0 user adsl
set interface atmpvc0 password adsl
开启NAT(网络地址转换)
set interface atmpvc0 nat on
关闭桥方式
set interface atmpvc0 bridge off
set bridge off
保存设置
save
重新启动
reboot
启动完毕以后当猫同步结束即可正常上网。
输入WAN IP地址及子网掩码(由ADSL运营商提供,假设 IP地址为202.106.69.75
子网掩码为255.255.255.0)
set interface atmpvc0 ip 202.106.69.75 255.255.255.0
输入NAT的 IP地址及子网掩码(同上)
set interface atmpvc0 natip 202.106.69.75 255.255.255.0
输入NAT的网关IP地址(由ADSL运营商提供,假设 IP地址为202.106.69.71 )
add route 0.0.0.0 0.0.0.0 202.106.69.71 atmpvc0
关闭桥方式
set interface atmpvc0 bridge off
set bridge off
打开桥接命令行设置方法:(不用复位猫)
delete ppp intf ifname ppp-0
create eoa intf ifname eoa-0 lowif aal5-0
create bridge port intf ifname eoa-0
modify bridge mode enable wan2wan enable
commit
然后就马上可以用PC试拔号了
PC拔号成功后,可以把猫上的IP过滤、NAT等没必要的东西关了(不关也可以),然后接上无线路由器进行设置了
设置IP session
modify nbsize maxipsess XXX
注:XXX为你要修改的值
调整ADSL里面的时间的方法
1、用telnet登陆ADSL:
2、键入如下命令:
modify sntp cfg disable
modify system timezone "CCT"
create sntp servaddr dname time.nist.gov
modify sntp cfg enable
commit
reboot
打开UPnP功能:
用telnet登陆设备后输入
modify upnp cfg nbstatus enable
commit
reboot
设备重启就可以了!
查看设备的upnp是否开了可以这样
用telnet登陆后输入
$get upnp cfg
得到
Next Boot Status : enable
Advertisement Cache Age(sec) : 1830
USB接口的设置去掉
用telnet登陆,执行命令
$delete usb intf ifname usb-0
$commit
即可。
Current Status : enable
保存设置
Save/ commit
重新启动
Reboot
后记:就算你的路由不是采用的viking的fw,里面的一些命令可能也是大同小异,还是可以参考参考。至于更多的命令,你可以把fw备份到本地计算机上用16进制编辑器打开直接查看。
沉痛悼念我曾经心爱的 华为MT800!
As mentioned by the people above, the key to your problem is port mapping. This needs to be set up on your router, or you can download something like "Huashengke" to solve it.
As for the router settings, if your router uses the viking's fw, you can refer to some content in . But you said you just bought a new router, and I think it probably doesn't use the viking's fw.
Appendix:
Some Telnet commands: (mainly for Vinking series chips)
MAC address list clearing:
Run CMD, enter arp -d and press Enter
Backing up FW:
tftp -i 192.168.1.1 get TEimage.bin
Upgrading FW:
tftp -i 192.168.1.1 put TEimage.bin
Setting method of TELNET console:
Login port setting
modify nbsize httpport <decvalue>
modify nbsize telnetport <decvalue>
modify nbsize ftpport <decvalue
Turning off SNMP
modify snmp trap disable
If it is not completely turned off, and the SNMP vulnerability can still be found with a scanner, it is best to add the following two sentences:
$delete snmp comm community private
$delete snmp comm community public
Modifying the MTU value in the telnet console:
modify ppp intf ifname ppp-0 mtu 1480
ifconfig eth0 mtu 14xx (Linux Shell)
Setting VPI and VCI values (provided by the ADSL operator, assuming: VPI is 0, VCI is 33)
add interface atmpvc
set interface atmpvc0 vpi 0
set interface atmpvc0 vci 33
Specifying the line mode (assuming 2: G.dmt)
set interface adsl standard 2
Setting the encapsulation type (5 is PPPOE)
set interface atmpvc0 encap 5
Setting the username and password during dial-up (provided by the ADSL operator, assuming: username is adsl, password is adsl)
set interface atmpvc0 user adsl
set interface atmpvc0 password adsl
Enabling NAT (Network Address Translation)
set interface atmpvc0 nat on
Turning off bridge mode
set interface atmpvc0 bridge off
set bridge off
Saving settings
save
Rebooting
reboot
After the startup is complete, when the modem is synchronized, you can surf the Internet normally.
Entering the WAN IP address and subnet mask (provided by the ADSL operator, assuming the IP address is 202.106.69.75 and the subnet mask is 255.255.255.0)
set interface atmpvc0 ip 202.106.69.75 255.255.255.0
Entering the NAT IP address and subnet mask (the same as above)
set interface atmpvc0 natip 202.106.69.75 255.255.255.0
Entering the NAT gateway IP address (provided by the ADSL operator, assuming the IP address is 202.106.69.71 )
add route 0.0.0.0 0.0.0.0 202.106.69.71 atmpvc0
Turning off bridge mode
set interface atmpvc0 bridge off
set bridge off
Opening the bridge command line setting method: (without resetting the modem)
delete ppp intf ifname ppp-0
create eoa intf ifname eoa-0 lowif aal5-0
create bridge port intf ifname eoa-0
modify bridge mode enable wan2wan enable
commit
Then you can immediately try dialing with the PC
After the PC dialing is successful, you can turn off unnecessary things like IP filtering and NAT on the modem (it's okay if you don't turn them off), and then connect to the wireless router for settings.
Setting IP session
modify nbsize maxipsess XXX
Note: XXX is the value you want to modify
Method to adjust the time in ADSL
1. Log in to ADSL with telnet:
2. Type the following commands:
modify sntp cfg disable
modify system timezone "CCT"
create sntp servaddr dname time.nist.gov
modify sntp cfg enable
commit
reboot
Enabling the UPnP function:
After logging in to the device with telnet, enter
modify upnp cfg nbstatus enable
commit
reboot
The device will restart!
To check whether the device's upnp is enabled, you can do this
After logging in with telnet, enter
$get upnp cfg
Get
Next Boot Status : enable
Advertisement Cache Age(sec) : 1830
Removing the setting of the USB interface
Log in with telnet and execute the command
$delete usb intf ifname usb-0
$commit
即可。
Current Status : enable
Saving settings
Save/ commit
Rebooting
Reboot
Postscript: Even if your router does not use the viking's fw, some of the commands may be similar, and you can still refer to them. As for more commands, you can back up the fw to the local computer and open it with a hex editor to view directly.
Deeply mourning my once beloved Huawei MT800!
|
|
2006-11-20 13:16 |
|
|
shifuquan
初级用户
 
积分 64
发帖 25
注册 2006-11-9
状态 离线
|
『第 14 楼』:
谢谢楼上的
使用 LLM 解释/回答一下
最近郁闷,有时别人看得到我机子,有时看不到,上传还是不行,郁闷到家
Recently depressed, sometimes others can see my machine, sometimes not, upload still not working, depressed to the extreme
|
|
2006-11-27 10:17 |
|
|
kht000
初级用户
 
积分 45
发帖 14
注册 2006-9-12
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
说一下你的路由器的型号?
Can you tell me the model of your router?
|
|
2006-11-27 13:14 |
|