I searched through dd-wrt v23SP1 source and I think that you can try to create
scripts:
/etc/config/.ipup
/jffs2/etc/config/.ipup
/jffs2/etc/config/.ipup
if (!argv[1])
return EINVAL;
else if (strstr (argv[1], "deconfig"))
return deconfig ();
else if (strstr (argv[1], "bound"))
return bound ();
else if (strstr (argv[1], "renew"))
return renew ();
else if (strstr (argv[1], "update"))
return update_value ();
else
return EINVAL;
}
/*
* bound: This argument is used when udhcpc moves from an unbound, to
* a bound state. All of the paramaters are set in enviromental
* variables, The script should configure the interface, and set any
* other relavent parameters (default gateway, dns server, etc).
*/
static int
bound (void)
{
...
stop_firewall ();
cprintf ("configure to IF[%s] , IP[%s], MASK[%s]\n", wan_ifname,
nvram_safe_get ("wan_ipaddr"), nvram_safe_get ("wan_netmask"));
... if wan_proto is dhcp:
else
{
cprintf ("start wan done\n");
start_wan_done (wan_ifname);
}
./router/services/network.c
void
start_wan_done (char *wan_ifname)
{
...
/* save dns to resolv.conf */
cprintf ("dns to resolv\n");
dns_to_resolv ();
I'm actually working on an ASP page for router that you can just connect to from the local network. That way you can start and stop it whenever you need to, instead of having it run all of the time.
Posted: Thu Dec 14, 2006 11:25 Post subject: v23sp2
I installed the ipkgs from the links provided above (copying to /jffs) but when i try and run vpnc i still get the cant resolve sysbol 'mlock' what else do i need to patch and all to get this to work. also when i installed kmod_tun it complained about a dependency called kernel that did not exist in the ipkg list.
Posted: Thu Jan 04, 2007 22:06 Post subject: Re: v23sp2
firestormo wrote:
I installed the ipkgs from the links provided above (copying to /jffs) but when i try and run vpnc i still get the cant resolve sysbol 'mlock' what else do i need to patch and all to get this to work. also when i installed kmod_tun it complained about a dependency called kernel that did not exist in the ipkg list.
Hi,
sorry for replying so late.
I just checked the four *.ipkg I had posted,
and none of them contains an "mlock".
Can you check the md5sums ?
Why not simply switch over to OpenWrt WhiteRussian and webif^2?[list][*] flash OpenWrt WhiteRussian RC6
...
Things can be so easy, why go the difficult way?
Things are not easy if you try get work the following setup:
Client (wired) --> OpenWrt (e.g. with webif^2) --> WLAN --> AP --> Cisco VPN Concentrator
This is for example the basic setup if you want to get an internet connection at a German University. All of them have open WLANs w/o any Security enabled on the WLAN side but a Cisco VPN concentrator (mostly the very polular 3000 series) separating the WLAN from the university's network and the Internet.
The problem using OpenWrt is the very ugly handled setup of Client-mode using OpenWrt: There is no way to set up a DHCP Client on the WLAN using webif^2! On the other hand you have to set up new firewall rules _or_ (much more better) like DD-WRT have to modify the bridges. This can't be done by webif^2 at this time. I've tried this several ways but can't get any connection.
So I am using fli4l with vpnc as router/VPN termination on the local net, then the (reflashed with DD-WRT) buffalo for the WLAN Connection. The setup works really stable. The connection ist terminated after 24h. So i have to reconnect manually or do it by script. The throughput of the vpnc depends only on the fli4l hardware. On a 468DX40 it is about 8KByte/s (really poor )
So I am using fli4l with vpnc as router/VPN termination on the local net, then the (reflashed with DD-WRT) buffalo for the WLAN Connection. The setup works really stable. The connection ist terminated after 24h. So i have to reconnect manually or do it by script. The throughput of the vpnc depends only on the fli4l hardware. On a 468DX40 it is about 8KByte/s (really poor )
mick.
It's over now since i got another wireless connection from a different provider using PPTP. DD-WRT works really fine in this environment.
So for me there ist no need to use the cisco vpnc anymore.
Posted: Mon Jun 18, 2007 18:39 Post subject: Is their still somebody working on vpnc
Hi,
I have read this thread and would like to know, if there is some progress
or
maybe a working version of dd-wrt with vpnc in client mode?
I checked the new openwrt release
but the AP will not connect to the network and
with dd-wrt he does without any flaws so I thought I'll give it a try.