I am a final year student and I am planning to do a project "Wireless Connectivity Prepaid". Pls help me on how to configure lynksys wrt54g to redirect to my site.

Our proposed project is to limit the time of the registered user to use the internet and it will automatically cut off if the remaining time balance is 0hr 0min 0sec. The program allows the admin to add time for a particular user to used the internet.Right now, i still don't have the idea on how to start my project so i need your help here.

Your valuable time is highly appreciated to help me.

Here is my e-add for you to help me or post it here.

synchro_arthalz@y.c

Dani AI

Generated

asked about redirecting clients to a login site and enforcing prepaid time on a Linksys WRT54G. Two common designs are available: flash the WRT54G with custom firmware (OpenWrt or DD‑WRT) and run a captive‑portal on the router, or keep the WRT54G as a dumb access point and host the captive‑portal and RADIUS/accounting on a separate Linux box (Raspberry Pi or PC). As noted, custom firmware is the usual way; as observed, flashing can be fiddly and risks bricking the unit.

Practical sequence (high level): confirm the exact WRT54G model and hardware revision and verify flash/RAM limits before any firmware change. Prototype the captive portal on a PC first. For on‑router portals use lightweight daemons (NoDogSplash) or a full RADIUS gateway (CoovaChilli) if voucher/time accounting is needed. For an external server, run hostapd/dnsmasq/iptables on the server, use a captive‑portal daemon to intercept HTTP/DNS, and use FreeRADIUS for session control and accounting.

Typical session flow to implement prepaid time: client connects and gets IP; DNS/HTTP are intercepted and redirected to the login page; the web portal validates voucher/account against a DB; on success the portal signals FreeRADIUS or updates firewall rules to permit that client; accounting records elapsed time and a server job or RADIUS stop forces disconnect when time expires. The web app can store remaining_time per user and either drive RADIUS accounting or call an API that removes the client's firewall allowance when time hits zero.

Key cautions and tips: test on a spare unit, keep a recovery plan (TFTP/failsafe/serial), back up configs, and beware HTTPS/modern OS captive‑portal checks (intercept DNS and port 80; test phones and laptops). Official firmware docs: OpenWrt and DD‑WRT. Quick checklist: confirm revision, prototype on PC, pick portal software, add FreeRADIUS/accounting, test devices, and keep a recovery plan.

Recommended Answers

All 3 Replies

I think you will need to install a custom made firmware on the router to accomplish this.

Firmware?? I Saw A Video About The Flimware On Youtube It Is So Complicated That My Eyes Could Pop Out After I See The Video

Yes, it can get complicated if you are doing something wrong, it can turn your router into a brick. (doorstopper)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.