When I got this router I found there was nothing I could do to forward ports for my web server. I had instead resorted to obtaining other routers to do this such as the Huwai.
Apparently TT's firmware prevents Portforwarding as they need to have secure access to the router it somehow contravenes setting up PF.
Well there is a solution but unfortunately it will not allow VPN which requires GRE drivers for the Firmware running on your router which are not there yet.
So VPN is out but Portforwarding isn't as you can telnet to your router and open the ports manually.
I have written a script that uses expect to automate this for you from the Linux commandline.
This will work from a Linux commandline and this may also include Cygwin on windows.
For windows users :
1. Install cygwin
2. Install expect-lite, and telnet
3. Download script and edit script
4. Run script from Cygwin
For Linux:
1.Install expect
2. Download script and edit script
3. Run script to open or close port.
This is temporary if you reset router it will erase your ports, but you could easily write a script for every port using this script that you run on startup.
https://www.dropbox.com/s/5c9cd5jbb8cfyy1/portforward.sh
https://www.dropbox.com/s/9sapylagybbyixo/unportforward.sh
Edit each script providing yourrouterspassword and yourroutersusername e.g admin / admin for default.
Usage : portforward.sh 192.168.1.5 5000
This will open port 5000 and forward it to internal ip address 192.168.1.5
No comments:
Post a Comment