Koozali.org: home of the SME Server

SME 5.5u6 + FreeSwan

Paul F

Re: SME 5.5u6 + FreeSwan
« Reply #15 on: April 30, 2003, 08:21:34 PM »
Interesting. I have still to figure out how to modify the template to do this when FreeSwan starts. I'm sure you will notice that on a reboot it is set back to 1.

Also, I came back in this morning and the tunnels were down. With 5.1.2 I had tunnels up for weeks straight. So I will have to keep watch.

Thanks again for all your help!

Peter Schubert

Re: SME 5.5u6 + FreeSwan
« Reply #16 on: April 30, 2003, 09:08:11 PM »
Hmm .......

The template fragment for mask should do this:  

 # Turn on Source Address Verification
    for f in /proc/sys/net/ipv4/conf/*/rp_filter; do
        echo 0 > $f
    done

maybe try to insert this also in the ipsec-start script.

Paul F

Re: SME 5.5u6 + FreeSwan
« Reply #17 on: May 01, 2003, 02:08:56 AM »
Has anyone tried using this in a situation where one client is dynamic IP and using the hostname instead?

Thanks!

guestHH

Re: SME 5.5u6 + FreeSwan
« Reply #18 on: May 01, 2003, 12:51:42 PM »
Peter,

dont't know programming but is it possible that 'echo 0 > $f' should be:
'echo 0 > /proc/sys/net/ipv4/conf/$f/rp_filter'

Just a thought...

Peter Schubert

Re: SME 5.5u6 + FreeSwan
« Reply #19 on: May 01, 2003, 02:03:14 PM »
No ....

try it out:

for f in /proc/sys/net/ipv4/conf/*/rp_filter
do
echo -n Old value of $f" is "
cat $f
echo 0 >$f
echo -n New value of $f" is "
cat $f
done

>
> Peter,
>
> dont't know programming but is it possible that 'echo 0 > $f'
> should be:
> 'echo 0 > /proc/sys/net/ipv4/conf/$f/rp_filter'
>
> Just a thought...

guestHH

Re: SME 5.5u6 + FreeSwan
« Reply #20 on: May 01, 2003, 07:53:20 PM »
Ok Peter, that's clear. Thx.

Now I just rebooted my machine and rp_filter is back to 1. When I echo > 0 to the device it still remains 1...??

Anyting I overlook ?

TIA
Regards,
guestHH

Peter Schubert

Re: SME 5.5u6 + FreeSwan
« Reply #21 on: May 02, 2003, 03:04:10 PM »
I made an update to the source an add 2 new things:
update ot /etc/sysctl.conf (to set rp_filter default to 0)
panel function to change the public ID (domainname oder external IP)

You can download the new
devinfo-freeswan-1.99-8sme56.noarch.rpm
at
http://mirror.contribs.org/smeserver/contribs/saco/contrib/devinfo-freeswan-1.99/

You only need devinfo-freeswan-1.99-8sme56.noarch.rpm, all other rpms are unchanged.

Good Luck
Peter
guestHH wrote:
>
> Ok Peter, that's clear. Thx.
>
> Now I just rebooted my machine and rp_filter is back to 1.
> When I echo > 0 to the device it still remains 1...??
>
> Anyting I overlook ?
>
> TIA
> Regards,
> RequestedDeletion

guestHH

Re: SME 5.5u6 + FreeSwan
« Reply #22 on: May 02, 2003, 05:32:52 PM »
Thanks Peter i'll test it over the weekend.

btw:

I try to set up a VPN between two 5.6U4 server both behind a Alcatel ADSL modem. Yep, it's not working because the public IP on the modem is not the IP of the eth1 of the servers. The adsl (Altcatel speedtouch) do NAT.

I read trough the Freeswan lists and it comes up a few times, but not a real solution or procedure. And it's all very high technical...

Does anybody have some hints/tips  

TIA
Regards,
guestHH

guestHH

Re: SME 5.5u6 + FreeSwan
« Reply #23 on: May 06, 2003, 11:42:52 PM »
As promised Paul the feedback,

the latest dev-info adjustment makes 'rp_filter = 1' go away :-) Using 5.6U4.

Thx.

issue with sme -> xdsl modem -> Internet <- Xdsl modem <- sme remains...
Maybe a roadwarrior setup...?

Regards,
guestHH

Paul F

Re: SME 5.5u6 + FreeSwan
« Reply #24 on: August 26, 2003, 06:25:22 PM »
Thanks to Peter and RequestedDeletion for clearing this up!