China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-02 15:38
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » ■Upload files to FTP (this FTP computer accesses the Internet through a router)■ View 2,494 Replies 24
Original Poster Posted 2006-11-20 02:18 ·  中国 江苏 苏州 电信
初级用户
Credits 64
Posts 25
Joined 2006-11-09 00:11
19-year member
UID 70068
Gender Male
Status Offline
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 ]
Floor 2 Posted 2006-11-20 03:10 ·  中国 江苏 苏州 电信
初级用户
Credits 64
Posts 25
Joined 2006-11-09 00:11
19-year member
UID 70068
Gender Male
Status Offline
Is anyone there? Everyone, help out a bit
Floor 3 Posted 2006-11-20 03:59 ·  中国 山东 青岛 崂山区 联通
新手上路
Credits 4
Posts 2
Joined 2006-07-16 11:06
20-year member
UID 58657
Status Offline
I can't understand what you mean!
Floor 4 Posted 2006-11-20 04:31 ·  中国 浙江 杭州 电信
初级用户
Credits 34
Posts 12
Joined 2006-09-25 04:45
19-year member
UID 63588
Gender Male
Status Offline
Floor 5 Posted 2006-11-20 04:36 ·  中国 江苏 苏州 电信
初级用户
Credits 64
Posts 25
Joined 2006-11-09 00:11
19-year member
UID 70068
Gender Male
Status Offline
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?
Floor 6 Posted 2006-11-20 04:48 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

What is the relationship between accessing FTP and installing a router?

Just let him access the FTP address, right?
Floor 7 Posted 2006-11-20 04:58 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
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'>"
Floor 8 Posted 2006-11-20 05:35 ·  中国 江苏 苏州 电信
初级用户
Credits 64
Posts 25
Joined 2006-11-09 00:11
19-year member
UID 70068
Gender Male
Status Offline
It doesn't work. The FTP machine uses a router, and the machines below (in other cities) can't upload.
Floor 9 Posted 2006-11-20 05:54 ·  中国 河南 商丘 梁园区 电信
初级用户
Credits 45
Posts 14
Joined 2006-09-12 06:06
19-year member
UID 62386
Status Offline
Then modify the router. Map the IP.
Floor 10 Posted 2006-11-20 06:27 ·  中国 江苏 苏州 电信
初级用户
Credits 64
Posts 25
Joined 2006-11-09 00:11
19-year member
UID 70068
Gender Male
Status Offline
Floor 11 Posted 2006-11-20 06:59 ·  中国 甘肃 甘南藏族自治州 合作市 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
You need to map ports on the router, which has little to do with the other party.
Floor 12 Posted 2006-11-20 08:29 ·  中国 江苏 苏州 电信
初级用户
Credits 64
Posts 25
Joined 2006-11-09 00:11
19-year member
UID 70068
Gender Male
Status Offline
Continuing the Revolution

[ Last edited by shifuquan on 2006-11-19 at 08:40 PM ]
Floor 13 Posted 2006-11-20 13:16 ·  中国 湖北 荆门 电信
荣誉版主
★★★
Credits 2,013
Posts 718
Joined 2006-02-18 07:07
20-year member
UID 50550
Status Offline
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!
Floor 14 Posted 2006-11-27 10:17 ·  中国 江苏 苏州 电信
初级用户
Credits 64
Posts 25
Joined 2006-11-09 00:11
19-year member
UID 70068
Gender Male
Status Offline
Recently depressed, sometimes others can see my machine, sometimes not, upload still not working, depressed to the extreme
Floor 15 Posted 2006-11-27 13:14 ·  中国 河南 商丘 梁园区 电信
初级用户
Credits 45
Posts 14
Joined 2006-09-12 06:06
19-year member
UID 62386
Status Offline
Can you tell me the model of your router?
Forum Jump: