Saulius2006
Posts: 6
Joined: Thu Aug 25, 2016 8:11 pm

Two or more interfaces found, checking IP forwarding

Tue Sep 06, 2016 7:30 am

Hi,

I'm trying to set L2TP VPN server on my Raspberry Pi with:
Linux raspberrypi 4.4.19-v7+ #906 SMP Tue Aug 23 15:53:06 BST 2016 armv7l GNU/Linux.

However what ever I try I can't get IP forwarded error from ipsec verify:

Version check and ipsec on-path [OK]
Linux Openswan U2.6.38/K4.4.19-v7+ (netkey)
Checking for IPsec support in kernel [OK]
SAref kernel support [N/A]
NETKEY: Testing XFRM related proc values [OK]
[OK]
[OK]
Hardware RNG detected, testing if used properly [FAILED]

Hardware RNG is present but 'rngd' or 'clrngd' is not running.
No harware random used!

Checking that pluto is running [OK]
Pluto listening for IKE on udp 500 [OK]
Pluto listening for NAT-T on udp 4500 [OK]
Two or more interfaces found, checking IP forwarding [FAILED]
Checking NAT and MASQUERADEing [OK]
Checking for 'ip' command [OK]
Checking /bin/sh is not /bin/dash [WARNING]
Checking for 'iptables' command [OK]
Opportunistic Encryption Support [DISABLED]


the /etc/sysctl.conf is set up according the instructions:
#
net.ipv4.conf.default.send_redirects=0
net.ipv4.conf.all.send_redirects=0
net.ipv4.conf.eth0.send_redirects=0
net.ipv4.conf.lo.send_redirects=0
net.ipv4.conf.wlan0.send_redirects=0
net.ipv4.conf.default.accept_redirects=0
net.ipv4.conf.all.accept_redirects=0
net.ipv4.conf.eth0.accept_redirects=0
net.ipv4.conf.lo.accept_redirects=0


if I run sysctl -p looks also fine:
root@raspberrypi:/# sysctl -p
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.eth0.send_redirects = 0
net.ipv4.conf.lo.send_redirects = 0
net.ipv4.conf.wlan0.send_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.eth0.accept_redirects = 0
net.ipv4.conf.lo.accept_redirects = 0
net.ipv4.conf.wlan0.accept_redirects = 0
net.ipv4.ip_forward = 1


Can someone please advise that I'm doing wrong or should I have something changed.
The tutorial for VPN server I took from:
https://raymii.org/s/tutorials/IPSEC_L2 ... Linux.html.


Thanks
Saulius

Return to “General discussion”