Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Richard Dols on February 09, 2003, 04:04:03 PM

Title: adsl4linux <> sme 5.6 (pptp bug?)
Post by: Richard Dols on February 09, 2003, 04:04:03 PM
Hello,

Last week i re-installed sme 5.6 (was 5.6 beta 1). Since then i have a lot of problems with my modem connection (ads4linux). pptp comes with a error. some times after one minute, some times after 18 hours and everthing between it.

Browsing through this forum i saw a lot of problems with the new pptp. Currently i trying to solve the problem.

If you use 5.6dev with adsl4linux please reply to this message if you have the same problem or not.

regards,
  Richard Dols
-------
5.6beta1 uses poptop 1.1.2
5.6dev  uses poptop 1.1.3
-------
Feb  6 02:04:48 server1 pptp[2114]: log[pptp_dispatch_packet:pptp_ctrl.c:495]: Unknown PPTP control message type received: 0
Feb  6 02:05:48 server1 pptp[2114]: log[pptp_conn_close:pptp_ctrl.c:307]: Closing PPTP connection
Feb  6 02:05:48 server1 pptp[2114]: log[call_callback:pptp_callmgr.c:88]: Closing connection
Feb  6 02:05:51 server1 pppd[2103]: Modem hangup
Feb  6 02:05:51 server1 pppd[2103]: Connection terminated.
Feb  6 02:05:51 server1 pppd[2103]: Connect time 88.4 minutes.
Feb  6 02:05:51 server1 pppd[2103]: Sent 1313527 bytes, received 12371480 bytes.
Feb  6 02:05:51 server1 /etc/hotplug/net.agent: NET unregister event not supported
Feb  6 02:05:52 server1 pppd[2103]: Connect time 88.4 minutes.
Feb  6 02:05:52 server1 pppd[2103]: Sent 1313527 bytes, received 12371480 bytes.
Feb  6 02:05:52 server1 pppd[2103]: Exit.
-------
Title: Re: adsl4linux <> sme 5.6 (pptp bug?)
Post by: Anthony de Waal on February 10, 2003, 12:38:50 AM
Hi there,
this one I know :-)
I have ADSL with MxStream via xs4all.
With ADSL4Linux 1.09 and Alcatel Speedtouch Home.
The solution of your problem is here:

http://forums.contribs.org/index.php?topic=16298.msg62997#msg62997 :
Quote
1) mkdir /etc/e-smith/templates-custom/etc/rc.d/init.d/masq

2) cp /etc/e-smith/templates/etc/rc.d/init.d/masq/10masq.pptp /etc/e-smith/templates-custom/etc/rc.d/init.d/masq

3) edit the 10masq.pptp in the templates-custom directory and comment out the two lines:
# /sbin/modprobe ip_nat_pptp
# /sbin/modprobe ip_conntrack_pptp

4) remove the 10masq.pptp from the templates directory

5) run /sbin/e-smith/expand-template /etc/rc.d/init.d/masq

6) reboot
/Quote

Forget the 4), it is not necessary.

This will solve your troubles, until you need to make VPN connections frome more than one workstation in your network.

BTW I got fed up with being different from the rest of the world, and did the things described on www.bruring.com to make the modem Pro instead of home. Then did
the SIP_Spoof thing. Make sme server use DHCP for outer interface, and it automatically gets the public IP address on eth1. No more ADSL4Linux needed.
The modem has no packet filter in this configuration, so you can still do everything such as VPNs.

Kind greetings,
Thony
Title: Re: adsl4linux <> sme 5.6 (pptp bug?)
Post by: Richard Dols on February 10, 2003, 11:32:38 AM
Anthony,

Current i have a stable connection, but now i have a lot of error messages. I used the rpm's described earlier in this forum. But if this works it's much better then i used. I try this later this week, when i have some time.

Regarding for modem tweaking, i used that setting for almost a year. It has a lot of advantages, but due the double NAT function (server and modem) you lose a lot of connectivity. exampe: try "tracert" it won't work because of this. Also i host a few personal website, they don't work with a tweaked modem.

Regards,
  Richard Dols
Title: Re: adsl4linux <> sme 5.6 (pptp bug?)
Post by: Anthony de Waal on February 10, 2003, 01:14:04 PM
Hi  Richard,
I assumed you are Dutch, if so then these instructions should mean no problem for you: Tweak zonder NAT --> Direct op internet
http://www.bruring.com/nuke/modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=7&page=1

The beauty is that this has no NAT or other packet filtering, it is now only a DHCP server that gives your e-smith the correct IP, Gateway and DNS. And the important part that you already discovered is the ability to set up the connection to MxStream.
I did a traceroute just yesterday to see where the Internet connection with e-smith.org was going astray. Worked like a charm. I also use VPN to connect to the servers at work through this.
Also working like a charm, except for when I do it from another PC than the one I used for an earlier connection, even if that one is closed. I have to reboot the server, not just start re-start the firewall, to mend that.
The modules to comment out in the advice from mitel are actually for masquerading VPN, so that makes some sense.
It is rather off-topic here to speak about modem tweaking, if anyone doesn't understand something on the site I mentioned, contact me privately than I will translate for you.
ind greetings,
Thony

Richard Dols wrote:
>
> Anthony,
>
> Current i have a stable connection, but now i have a lot of
> error messages. I used the rpm's described earlier in this
> forum. But if this works it's much better then i used. I try
> this later this week, when i have some time.
>
> Regarding for modem tweaking, i used that setting for almost
> a year. It has a lot of advantages, but due the double NAT
> function (server and modem) you lose a lot of connectivity.
> exampe: try "tracert" it won't work because of this. Also i
> host a few personal website, they don't work with a tweaked
> modem.
>
> Regards,
>   Richard Dols