Linux tip, Fedora tip / howto: setting up a D-Link DSL-G604T wireless router

 
back to notes and tips index

Try my online puzzle page with Calcudoku, Killer Sudoku and online Sudoku.

setting up a D-Link DSL-G604T wireless router

For your firewall rules, it is useful to assign a fixed IP to your PC. You can still leave the DHCP server enabled, for laptops accessing through wireless for example. From the admin web interface:
  • Setup -> DHCP Configuration: Enable DHCP
  • Advanced -> Lan Clients: add an entry for your hostname and the IP address you'd like (for example, 192.168.1.200)
  • Advanced -> Port Forwarding: here you can add firewall rules for your fixed IP
  • run system-config-network and edit your eth0 entry: under the "General" tab, select "Statically set IP addresses": Address to the fixed IP you chose, Subnet mask to 255.255.255.0, and Default gateway address to the IP address of the router (by default 192.168.1.1)
  • /etc/rc.d/init.d/network restart (as root)

Security tips:

  • Setup -> Wireless: make sure you use at least WPA, with a PSK String
  • Tools -> User Management: change the default admin password
  • Advanced -> Advanced Security: enable Firewall and NAT only

A script to check who is connected to your router

Put the following in a script check_clients.sh: #!/bin/sh host=192.168.1.1 port=23 cmd="cat /var/tmp/udhcpd.leases" ( echo open ${host} ${port} sleep 1 echo "root" sleep 1 echo "put your router admin password here" sleep 1 echo ${cmd} sleep 1 echo exit ) | telnet

  • make the script executable with chmod 755 check_clients.sh
  • it will show the connected clients on individual lines, with their MAC address, IP address, some number (?), and host name


← back to notes and tips index
Please do not copy the text of this tip (© Patrick Min) to your web site.