Go to advanced search

by TerryC65
Sat Dec 04, 2021 6:03 pm
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

bls wrote:
Sat Dec 04, 2021 6:01 pm
So…what is the current problem needing resolution?
The original problem, I think. If I can get the VPN Server working properly again by restoring the backup, then I'll need to make the iptables command that solves the problem stick.
by TerryC65
Sat Dec 04, 2021 5:57 pm
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

The VPN server is for inbound traffic. Are you now saying you don't need it for inbound traffic? For outbound traffic, you are correct that the VPN server isn't needed, that's an artifact of the way you have your network configured. I'm not sure that I understand what you are saying there. Clearly ...
by TerryC65
Sat Dec 04, 2021 5:31 pm
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

The VPN server is for inbound traffic. Are you now saying you don't need it for inbound traffic? For outbound traffic, you are correct that the VPN server isn't needed, that's an artifact of the way you have your network configured. I'm not sure that I understand what you are saying there. Clearly ...
by TerryC65
Sat Dec 04, 2021 4:22 pm
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

Secondly, by default iptables has NOTHING to do with /etc/iptables.rules. That is something you read on a forum page (or somewhere else). You can create your iptables rules whereever you want, there is, as far as I know, no DEFAULT file used by iptables. If you want the file to be at /etc/iptables....
by TerryC65
Sat Dec 04, 2021 3:57 pm
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

I'm not clear how you determined that it's something to do with routing through the VPN server, but OK. After I had rebuilt the Music Pi OS installation, as described above, I could resolve URLs when I bypassed the VPN Server by setting the Music Pi's IP Address to be in my Home networks subnet and...
by TerryC65
Sat Dec 04, 2021 11:34 am
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

jojopi wrote:
Sat Dec 04, 2021 11:29 am
bls wrote:
Thu Dec 02, 2021 7:55 pm
What happened to the "-o eth0"?
iptables -L simply is not comprehensive.

You need iptables -L -v, or better still iptables-save, which displays rules in their actual syntax.
Agreed. In the post referenced by bls I was using sudo iptables -L -t nat.
by TerryC65
Sat Dec 04, 2021 11:32 am
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

bls, It wasn't the installation of bullseye on the Music Pi that was the problem. :( It's something to do with the routing through the VPN Server. Here is what I've done so far: A clean installation of bullseye. Enabled SSH. Setup the IP address in dhcpcd.conf to 192.168.1.9 and connected the Ethern...
by TerryC65
Sat Dec 04, 2021 7:33 am
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

When you say "upgrade", do you mean "Take a Buster system and upgrade it to Bullseye", or "Used to run Buster, but blasted a new SD Card with Bullseye and now running on a brand new fresh Bullseye system" ? In spite of people doing upgrades, my experience with doing an...
by TerryC65
Fri Dec 03, 2021 4:00 pm
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

I've now found that there are a lot of issues with this Pi, including the date/time no longer being updated and URLs no longer being resolved. Couple that with the iptables problem and I've decided to cut my losses. This installation says that it's at bullseye, but I think that maybe I didn't do the...
by TerryC65
Fri Dec 03, 2021 12:27 pm
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

I actually think that the problem is that the iptables config isn't being retained across reboots. If I apply the command to the Music Pi and immediately boot into the Bells Pi, I have full access to the Internet. If I exit the Bells Pi and reboot the Music Pi, access to the Internet from the Bells...
by TerryC65
Fri Dec 03, 2021 10:13 am
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

bls and epoch, What happened to the "-o eth0"? Something is definitely amiss, relative to your network diagram. I actually think that the problem is that the iptables config isn't being retained across reboots. If I apply the command to the Music Pi and immediately boot into the Bells Pi, ...
by TerryC65
Thu Dec 02, 2021 8:04 pm
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

What happened to the "-o eth0"? Something is definitely amiss, relative to your network diagram. Please provide the output from "ip a" on both the Music Player and the VPN server? I'm afraid I've just shut everything down because I have dinner coming up and so I'll have to retur...
by TerryC65
Thu Dec 02, 2021 7:45 pm
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

Please do the following sequence of commands: sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo iptables -L -t nat If the iptables -L command doesn't show what you just set in the first command, there is something drastically wrong. Here it is; and It's different: pi@minster-music:~ $ ...
by TerryC65
Thu Dec 02, 2021 6:10 pm
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Re: Problem with Routing Packets Through two Pis to the Internet

Terry, did you enable net.ipv4.ip_forward=1 on the Music Player system? No I didn't but I have now. pi@minster-music:~ $ sudo sysctl -w net.ipv4.ip_forward=1 net.ipv4.ip_forward = 1 Also, you mentioned that you (correctly) applied a MASQUERADE entry to the POSTROUTING table on the Music Player, but...
by TerryC65
Thu Dec 02, 2021 12:57 pm
Forum: Networking and servers
Topic: Problem with Routing Packets Through two Pis to the Internet
Replies: 27
Views: 746

Problem with Routing Packets Through two Pis to the Internet

Good Day, I have a routing problem with some Pi based hardware from our local Model Town. I developed and installed this hardware over the Winter Maintenance period earlier this year and I removed it at the beginning of this Maintenance period to carry out hardware and software upgrades. All this wo...
by TerryC65
Mon Nov 29, 2021 4:05 pm
Forum: Troubleshooting
Topic: Problem Mounting Memory Stick on Raspberry Pi
Replies: 9
Views: 185

Re: Problem Mounting Memory Stick on Raspberry Pi

thagrol wrote:
Mon Nov 29, 2021 11:32 am
If it were me I'd:
  1. Use the PC to reformat to ext4
  2. Mount the partition on the PC
  3. Code: Select all

    sudo chmod 777 /path/to/mountpoint
    so permissions on it are fully open to all users
  4. Unmout and unplug it.
  5. Conenct it to the Pi
  6. Mount with

    Code: Select all

    sudo mount /dev/sda1 /media/usb/
That did the trick. Thanks thagrol.
by TerryC65
Mon Nov 29, 2021 12:31 pm
Forum: Troubleshooting
Topic: Problem Mounting Memory Stick on Raspberry Pi
Replies: 9
Views: 185

Re: Problem Mounting Memory Stick on Raspberry Pi

I've got to take a friend to a hospital appointment this afternoon, but I will try these suggestions tomorrow.
by TerryC65
Mon Nov 29, 2021 12:01 pm
Forum: Troubleshooting
Topic: Problem Mounting Memory Stick on Raspberry Pi
Replies: 9
Views: 185

Re: Problem Mounting Memory Stick on Raspberry Pi

thagrol wrote:
Mon Nov 29, 2021 11:32 am
[
  1. Use the PC to reformat to ext4
One question; I've always believed that ext3 and ext4 are journaling file systems and shouldn't be used on memory sticks etc to reduce wear.

Is this advice out of date? I'm aware that the Pi uses ext4 on the SD Cards, so maybe I am.
by TerryC65
Mon Nov 29, 2021 9:22 am
Forum: Troubleshooting
Topic: Problem Mounting Memory Stick on Raspberry Pi
Replies: 9
Views: 185

Re: Problem Mounting Memory Stick on Raspberry Pi

is user "terry" and group "terry" members of user "pi" and group "pi" in the RPi install? Good point, maybe I need to format the stick on the Pi instead of my PC to make this a bit more straightforward? I'm working on another problem right now, but I'll get b...
by TerryC65
Mon Nov 29, 2021 6:39 am
Forum: Troubleshooting
Topic: Problem Mounting Memory Stick on Raspberry Pi
Replies: 9
Views: 185

Problem Mounting Memory Stick on Raspberry Pi

Hi, I've been trying to back up a Pi installation using image-utils (see https://forums.raspberrypi.com/viewtopic.php?t=247568 ). This tool backs up the running system and writes the image to a specified destination. I've used it many times before but I recently had an issue because my image file wa...
by TerryC65
Mon Nov 29, 2021 6:31 am
Forum: Advanced users
Topic: Image File Utilities
Replies: 644
Views: 124096

Re: Image File Utilities

RonR wrote:
Sun Nov 28, 2021 10:08 pm
This issue is clearly unrelated to Image File Utilities and should be investigated in a new topic.
My apologies RonR; I clearly wasn't thinking. :oops: I posted the query as a follow up to the answer you gave about using ext2 on the stick,
by TerryC65
Sun Nov 28, 2021 4:40 pm
Forum: Advanced users
Topic: Image File Utilities
Replies: 644
Views: 124096

Re: Image File Utilities

Ah Ha! It is mounted OK, but formatted FAT32. I'll try again and report back. Looking Good :!: It's chugging away nicely now. As it happens, it was chugging away writing to /media/usb, not the USB stick plugged into the Pi :oops: Just after this, our washing machine popped its clogs and it's taken ...
by TerryC65
Wed Nov 17, 2021 10:27 am
Forum: Advanced users
Topic: Image File Utilities
Replies: 644
Views: 124096

Re: Image File Utilities

TerryC65 wrote:
Wed Nov 17, 2021 10:18 am
Ah Ha! It is mounted OK, but formatted FAT32. I'll try again and report back.
Looking Good :!: It's chugging away nicely now.

Thanks.
by TerryC65
Wed Nov 17, 2021 10:18 am
Forum: Advanced users
Topic: Image File Utilities
Replies: 644
Views: 124096

Re: Image File Utilities

RonR wrote:
Wed Nov 17, 2021 10:14 am
Is the drive (/dev/sda1?) mounted on /media/usb and is it formatted with a filesystem that supports individual file sizes of over 4GB (ext4, for example)?
Ah Ha! It is mounted OK, but formatted FAT32. I'll try again and report back.
by TerryC65
Wed Nov 17, 2021 10:03 am
Forum: Advanced users
Topic: Image File Utilities
Replies: 644
Views: 124096

Re: Image File Utilities

image-utils.zip (in the first post of this topic) has been updated. This update should eliminate an extremely rare case where image-backup could report "No space left on device" during an initial/full backup if no added space for incremental backups was specified. I'm not sure if this is ...

Go to advanced search