![]() At one end of my VPN (in my main network) I have a PFSense box running as border router and site-to-site VPN connections. I ended up spending several evenings trying various attempts to get this working. This proved to be more than a little bit of a challenge. I can immediately see that my alias is pointing at my 4G connection and I’ve got a way to determine my real public IP. I then made this executable, tested it worked and finally registered it to be included in startup/shutdown:Īnd with that we’ve got dynamic DNS up and working. # Carry out specific functions when asked to by the systemĮcho "Usage: /etc/init.d/noip " # If you want a command to always run, put it here # Description: A simple script from which will start / stop a program a boot / shutdown. # Short-Description: Simple script to start a program at boot Mv /tmp/nf get this to run as a service on the Pi I created a file /etc/init.d/noip with the following contents: ![]() New configuration file '/tmp/nf' created. Please enter the login/email string for enter the password for user ********ĭo you wish to have them all updated? (y/N) nĭo you wish to have host updated? (y/N) nĭo you wish to have host updated? (y/N) yĭo you wish to run something at successful update? (y/N) n Please select the Internet interface from this list. Multiple network devices have been detected. Gcc -Wall -g -Dlinux -DPREFIX=\"/usr/local\" noip2.c -o noip2Īuto configuration for Linux client of. When do you "make install" you’ll be guided through your config wget ġ00% 134,188 174K/s in 0.8s You need to download it, extract it and then compile/install by following the steps below. So for me I wanted to download the no-ip source for linux. I use no-ip for my dynamic DNS and then just have a CNAME from my domain to the appropriate no-ip hosts with a 15 second TTL. Next it was to modify the IP of the Pi itself in /etc/network/interfaces to match the gateway above: This gives me a /etc/nf that looks like this: In my case all I need to change are the opt router and start/end addresses. The first step is to change the address range that udhcpd offers. This made very little sense at the time and even less now – so time to change it. Setup VPN connection from my car’s router to my main network border router – any 10.0.0.0/16 should flow hereįor some reason I setup my car as a 192.168.1.0/24 block.Install a dynamic DNS client on the Pi to keep the IP updated whenever the vehicle is online.I’m not sure my car is going to need a /24, but I’m not exactly short on address space. Change my car’s network over to the 10.2.0.0/24 network (10.0.0.0/16 is for my house network, 10.1.0.0/16 is for AWS services and 10.3.0.0/16 is where I allocate my /30s from).I’ve already got a pfsense installation for my border router so can easily add a new IPSec VPN node connecting in to it – with just a couple of quick changes to my existing setup. So having recently got my Carputer up and running I decided I wanted to connect it to my LAN at home and for my business.
0 Comments
Leave a Reply. |