![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-02 14:18 |
48,038 topics / 350,123 posts / today 1 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » ■Upload files to FTP (this FTP computer accesses the Internet through a router)■ |
| Printable Version 2,491 / 24 |
| Floor1 shifuquan | Posted 2006-11-20 02:18 |
| 初级用户 Posts 25 Credits 64 | |
|
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 ] |
|
| Floor2 shifuquan | Posted 2006-11-20 03:10 |
| 初级用户 Posts 25 Credits 64 | |
|
Is anyone there? Everyone, help out a bit
|
|
| Floor3 aqjazz | Posted 2006-11-20 03:59 |
| 新手上路 Posts 2 Credits 4 | |
|
I can't understand what you mean!
|
|
| Floor4 KIKOOOO | Posted 2006-11-20 04:31 |
| 初级用户 Posts 12 Credits 34 | |
| Floor5 shifuquan | Posted 2006-11-20 04:36 |
| 初级用户 Posts 25 Credits 64 | |
|
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?
|
|
| Floor6 lxmxn | Posted 2006-11-20 04:48 |
| 版主 Posts 4,938 Credits 11,386 | |
|
What is the relationship between accessing FTP and installing a router? Just let him access the FTP address, right? |
|
| Floor7 electronixtar | Posted 2006-11-20 04:58 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
The title of LZ is quite powerful~
|
|
| Floor8 shifuquan | Posted 2006-11-20 05:35 |
| 初级用户 Posts 25 Credits 64 | |
|
It doesn't work. The FTP machine uses a router, and the machines below (in other cities) can't upload.
|
|
| Floor9 kht000 | Posted 2006-11-20 05:54 |
| 初级用户 Posts 14 Credits 45 | |
|
Then modify the router. Map the IP.
|
|
| Floor10 shifuquan | Posted 2006-11-20 06:27 |
| 初级用户 Posts 25 Credits 64 | |
| Floor11 vkill | Posted 2006-11-20 06:59 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
You need to map ports on the router, which has little to do with the other party.
|
|
| Floor12 shifuquan | Posted 2006-11-20 08:29 |
| 初级用户 Posts 25 Credits 64 | |
|
Continuing the Revolution
[ Last edited by shifuquan on 2006-11-19 at 08:40 PM ] |
|
| Floor13 3742668 | Posted 2006-11-20 13:16 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
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! |
|
| Floor14 shifuquan | Posted 2006-11-27 10:17 |
| 初级用户 Posts 25 Credits 64 | |
|
Recently depressed, sometimes others can see my machine, sometimes not, upload still not working, depressed to the extreme
|
|
| Floor15 kht000 | Posted 2006-11-27 13:14 |
| 初级用户 Posts 14 Credits 45 | |
|
Can you tell me the model of your router?
|
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |