IPhone, VPN, & Private Wi-Fi Address

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page Previous  1, 2
Author Message
D.F.Cruizer
DD-WRT User


Joined: 14 May 2023
Posts: 121

PostPosted: Sat Jul 06, 2024 8:45    Post subject: Reply with quote
I have a look at the entries in your 'Source for PBR' field: 192.168.1.10/31, 192.168.1.12/30, 192.168.2.32/28.... I don't think you can specify IP address ranges in that fashion in Networking.

Instead, at first try specifying each IP address individually such as 192.168.1.10, 192.168.1.12 and so on. I am not sure how many entries you are going to enter there but I can't imagine it takes you more a few minutes.

But as a proof concept of my point, if you clear out all entries in PBR and start with just your iPhone's IP address alone, say, 192.168.1.22 to see what happens.

And proceed from there.

Good luck.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13094
Location: Netherlands

PostPosted: Sat Jul 06, 2024 8:53    Post subject: Reply with quote
D.F.Cruizer wrote:
I have a look at the entries in your 'Source for PBR' field: 192.168.1.10/31, 192.168.1.12/30, 192.168.2.32/28.... I don't think you can specify IP address ranges in that fashion in Networking.


Yes you can it is called CIDR notation.
If you choose your ranges wisely you can simplify things let say I wanted an IP range using the VPN then I choose 64 IP addresses in the range 64 - 128 e.g. 192.168.1.64 - 192.168.1.127 this range can be written as 192.168.1.64/26

See: https://www.ipaddressguide.com/cidr

if you set only one IP address a /32 mask is assumed meaning only that one address, so 192.168.1.10 = 192.168.1.10/32


Edit: about the max entries it is 1024 characters

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
D.F.Cruizer
DD-WRT User


Joined: 14 May 2023
Posts: 121

PostPosted: Sat Jul 06, 2024 11:10    Post subject: Reply with quote
@egc
I understand about CIDR notation. On my home networks, I have set up /25, /27, and /28 using different schemas such as 192.168.x.x, 172.16.X.X to 172.31.X.X though.

However (my knowledge may be a bit rusty here), I have always thought that using different CIDR (i.e. /25 to /30) over the same schema of 192.168.1.X/24 in one filtering criteria is asking for potential corruption on a router's logic.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13094
Location: Netherlands

PostPosted: Sat Jul 06, 2024 11:27    Post subject: Reply with quote
CIDR is nothing more in this respect then a range of addresses, you can have overlapping ranges, not nice and not recommended but it does not harm in this respect and of course the largest wins

For interfaces a /24 subnet mask is recommended you can use other masks but if you then have overlap you are toast so it is much easier to stick to /24 for interfaces

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
James Greystone
DD-WRT User


Joined: 20 Nov 2011
Posts: 222

PostPosted: Sat Jul 06, 2024 14:25    Post subject: Reply with quote
Since the ip range that I want outside the VPN is

192.168.1.1 - 192.168.1.20

The CIDR notation converts to:

192.168.1.1/32
192.168.1.2/31
192.168.1.4/30
192.168.1.8/29
192.168.1.16/30
192.168.1.20/32

Which is why I use these values in the Source For PBR field.

I believe that's the correct method.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13094
Location: Netherlands

PostPosted: Sat Jul 06, 2024 14:59    Post subject: Reply with quote
That is correct 👌
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum