Dag-nabbit!
I posted that last reply to the wrong topic. Sorry for the confusion.
I posted that last reply to the wrong topic. Sorry for the confusion.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: bringha on March 15, 2019, 09:04:40 PM
I need to make one correction: you could install gcc which is in /usr/ports/lang/gcc and then you should also have a libstdc++ sorry for that mistake, corrected it above
Quote from: bringha on March 15, 2019, 05:21:29 PM
Hi,
I assume that your VPN application is written in C++. The default C++ standard Library on FreeBSD is libc++ and the default compiler is clang. libstdc++ is rather a gcc related. gcc is afaik not part of the OPNsense standard ports tree. gcc is indeed part of a standard FreeBSD ports tree.
Br br
iptables -t mangle -A INPUT -i eth0 -d 255.255.255.255 -m ttl --ttl-gt 0 -j TTL --ttl-set 1
iptables -t mangle -A INPUT -i eth1 -d 255.255.255.255 -m ttl --ttl-gt 0 -j TTL --ttl-set 1
iptables -t mangle -A INPUT -i eth0 -d 255.255.255.255 -m ttl --ttl-gt 0 -j TEE --gateway 10.1.1.255
iptables -t mangle -A INPUT -i eth1 -d 255.255.255.255 -m ttl --ttl-gt 0 -j TEE --gateway 10.1.0.255
gcc -g
to cpp
, however, it compiled properly after that.
pkg install git
gcc -g
with cpp
.main.c:52:10: fatal error: 'linux/if.h' file not found
#include <linux/if.h>
^~~~~~~~~~~~
1 error generated.
*** Error code 1
Stop.