Archive | Imprint | Privacy
2nd February 2006
Nerd 2.0

DLink 360-T: Router, HTTP server and DHCP in a

From current events, I would now like to summarize again all about the DLink 360-T.

The data for the telnet login, user "root" and password "admin". You should change this but as soon as possible via the web interface.

Modem as a router

  1. Ye log into a web interface of the modem and provides a data connection with the pppoe connection. To give one your connection and removes the Hacken at "On Demand" (not going to the modem).
  2. Now on Status> Connection Status and dial.
  3. Now you log onto via telnet, and give
    route default netmask 0.0.0.0 dev ppp0
    one.
  4. Now it would take more than just the gateway IP of the DSL modem and the DNS server of your provider.

Port shares one can now easily perform using "iptables". Here the example of eMule ports:

TCP | 4661
TCP | 4662
UDP | 4665
UDP | 4672
Zielrechner bei mir war 192.168.1.2
iptables -t nat -A PREROUTING -j DNAT -p tcp -s 0/0 –-dport 4661 –-to-destination 192.168.1.2 -i ppp0
iptables -t nat -A PREROUTING -j DNAT -p tcp -s 0/0 –-dport 4662 –-to-destination 192.168.1.2 -i ppp0
iptables -t nat -A PREROUTING -j DNAT -p udp -s 0/0 –-dport 4665 –-to-destination 192.168.1.2 -i ppp0
iptables -t nat -A PREROUTING -j DNAT -p udp -s 0/0 –-dport 4672 –-to-destination 192.168.1.2 -i ppp0

DHCP server

  1. Ye logged via telnet to the modem
  2. Go to the directory / var / tmp and have here is the file where all records relating to the DHCP server udhcpd.conf be made.
  3. To change the configuration it just puts a udhcpd.conf from the network and then brings them to you via wget on the modem.

Here is my example:
start 192.168.0.3
end 192.168.0.254
inflease_time 604800
interface br0
opt router 192.168.0.1
opt dns 192.168.0.1
opt subnet 255.255.255.0
opt lease 3600
conflict_time 60
lease_file /var/tmp/udhcpd.leases

own HTTP server

  1. Is it any wonder again just log in via Telnet.
  2. Now enter "ps" and the "thttpd" services seek out and kill by fire.
  3. Now you create a new directory (mkdir "/ var / tmp / www /") and starts the server with
    /usr/sbin/thttpd -g -d /var/tmp/www -u root -p 80
    again.
  4. Now you can store it in the directory / var / tmp / www / your HTML files.

To have a way to perform all changes automatically on start up now I've found yet, unfortunately.

Sample page on the modem: body-snatcher.ath.cx

Mfg. BODY-Snatch

PS: If you did not understand something, only the and the by then still read and post here.

13th November 2005
Nerd 2.0

Web server & DHCP on DLink 360T

And during the last week I was once again a few times and have long since looked to see what to do with my old DSL modem can start all over everything and lo and behold, it is a true multifunction device ;-).

So I do not have to start again from the very front of this old article: New DSL Modem (06.06.2005)

When I first got out that one can not write to the modem and that in the tempporären memory (/ var / tmp /).
The simplest method was to transfer files for me to make the time just a web server on the PC and then using "wget" from modem. In addition, the modem is still an "ftp client" with whom I am concerned but not further.

So first umgopolt DHCP server so that it does not take the modem as a gateway but my router by simply switching the "/ var / tmp / udhcpd.conf" with its overrides. This time my sample file:

start 192.168.0.3
end 192.168.0.254
inflease_time 604800
interface br0
opt router 192.168.0.1
opt dns 192.168.0.1
opt subnet 255.255.255.0
opt lease 3600
conflict_time 60
lease_file /var/tmp/udhcpd.leases

where the first two lines for the IP range available, the next award for permanent, inter-factor describes the interface, optical router is the gateway, dns opt the DNS server and the rest no plan ;-). When should you lease_file specify the path to the file containing the IP assignment is stored.
And now you can restart the DHCP using: "udhcpd / var / tmp / udhcpd.con"

Then what I thought, maybe if you can not spend its web interface instead of the private sites, which also works perfectly. Simply use "ps-a" to seek "httpd" service and end with "kill".
Then start the web server again with "/ usr / sbin / thttpd-g-d / var / tmp / www-u root-p-c / cgi-bin /". It is "/ var / tmp / www /" directory where the HTML files can be stored.

That's actually already.

Enjoy it wants BODY Snatch.

6th June 2005
Nerd 2.0

New DSL modem

So I have my old modem to the swapped from my buddy and had the first configuration, therefore gabs no recent updates. The modem is a DLink DSL-360T with the latest Fireware. In the beginning, only the bridge function worked really make sense, but in the course of the time I discovered more and more features and is now my Inet sohalb again, but start at the beginning.

The DHCP server of the modem is totally bugged. He is only normal IPs from the specified range, but once you get to the Internetconnectet its Internet IP, that is no longer a connection with other computers in the network. So first DHCP.

When can browse the Internet, I realized then that you connect to the modem via telnet and then tried to configure Sun

On the 360T is a Linux-based operating system, which with a little Linux knowledge and a little adjustment period is actually quite handy.

Respect the modem has a READ-ONLY FILE SYSTEM

My current configuration looks like this.
In the webadmin connection data set for PPPOE connection (note, not anhacken "On Demand", otherwise is not the Internet;)). (As on Demand works I try desperately to find even just out.)
Then click Status -> Connection Status and dial.
Now log in via Telnet and "route default netmask 0.0.0.0 dev ppp0" command.
Now you can the "iptables" ports still further conduct, etc. (just as with NEM ROUTER Linux;)).

The Windows client now simply as:
IP 192.168.1 .*
Netmask: 255.255.255.0
Gateway: 192.168.1.1 (router)

and DNS of your provider.
(Available also under Status -> System Log -> primary DNS address *.*.*.*
secondary DNS address *.*.*.*)

The problem until now is still the only one stop every time you connect to "route" and the minute you enter must. once every 24 hours in the Webadmin need to connect to reboot.

For more tips I'd be very grateful.

And as an idea, how versatile is the modem looks you look at the page:
http://www.webalice.it/andrea.usenet/dsl-302t.htm

Maybe the FAQ, so soon to find on Google and I can help some desperate users.

Mfg. BODY-Snatch