Web Hosting

This guide is confirmed to work with MEO Technicolor TG784n v3 firmware v10.2.1.L but may be used as a reference for different firmware versions or different router models.

users:
Administrator / 3!play
sumeo / bfd,10ng

1. Raspberry setup

Assuming you already have WordPress installed on your Raspberry Pi server…
(this guide can also be used using anything other then a Raspberry Pi or a WordPress Site)

All  you need to do is to define a static ip address on your Raspberry Pi, or else your router will lose track of where your site is.

For this edit the file /etc/network/interfaces.

auto eth0
iface eth0 inet static
address 192.168.1.65
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

2. Root access to your router

Access your router(most probably 192.168.1.254) using the following user:

sumeo
bfd,10ng

and check if you have SuperUser access: [Tools] > [User Management]
If you don’t have SU it might be tricky and google is your friend 🙂

Some sites to help:
https://forum.meo.pt/t5/Equipamentos-Internet/AJUDA-Router-Technicolor-TG784n-v3/td-p/75553
https://forum.meo.pt/t5/Tutoriais/Como-criar-um-RootUser-para-aceder-a-telnet-no-firmware-10-2-1-D/m-p/66415/highlight/true#M14853
http://forum.meo.pt/t5/Equipamentos-Internet/Como-restaurar-acessos-RootUser-e-permiss%C3%B5es-num-router-TG784n/m-p/68474
http://forum.meo.pt/t5/Equipamentos-Internet/Como-restaurar-acessos-RootUser-e-permiss%C3%B5es-num-router-TG784n/m-p/77306/highlight/true#M16593

3. Router setup

First you need to create a Domain Name and for that you need to register in some DNS (Domain Name System) Server.
I have been using http://www.noip.com/free which is free and simple to configure.

After registering on a DNS Server, you need to configure Dynamic DNS on your router. Dynamic DNS is responsible for, once in a while, to tell your DNS Server what’s your IP.
For this step, logging in your router and then:
Toolbox > Dynamic DNS > Configure
Use your DNS account settings.

4. Telnet – Port forward

Now the Internet knows how to find your home network!
Pretty cool but when someone asks to see your webpage, your router receives an http request and gets confused because it doesn’t know what to do with it.

To solve this, you need to forward every request on your router’s 80 port (http port) to your server’s 80 port.
Start by connecting to your router via telnet by typing in a terminal:

telnet 192.168..1.254

and login using sumeo user.

Once logged in, type menu.
Using tab, arrow and enter keys select the following combination:

To list the forwarded ports:
nat > tmpllist > [expand] = disabled

Delete (or modify) anything that uses port 80 from the outside of your network with tmpldelete on nat menu.
We will need this port since it is the default http request port.

To forward any request on your router’s port 80 to your server use tmpladd on nat menu and then:
intf = InternetGPON
type= NAPT
inside_addr = [your server IP]
protocol = tcp
outside_port = 80
inside_port = 80
mode = inbound
(anything else leave blanc)

After this select [Cancel] on nat menu and on telnet command prompt:
saveall
exit

And that’s it!
Your site is online!!!

main source: https://forum.meo.pt/t5/Tutoriais/Portforwarding-TECHNICOLOR-TG784n-V3/td-p/24343

Advertisements
This entry was posted in Computer Stuff, Network, Raspberry Pi, Wordpress and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s