Port forwarding and IP number wildcards

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Author Message
Jangofett
DD-WRT Novice


Joined: 21 Dec 2010
Posts: 15

PostPosted: Fri Feb 11, 2011 8:16    Post subject: Port forwarding and IP number wildcards Reply with quote
Using: Firmware: DD-WRT v24-sp2 (12/18/10) std on a WNDR3700

Would it be possible to enter Source Net IP wildcards under NAT/QoS -> Port Forwarding to only let traffic through to the inside if you are receiving traffic from your VPN provider only?

My provider assigns me IP s dynamically in the 92.182.***.*** range. Would be handy to be able to enter Source Net IP like that and have the router deny traffic from any other Source Net IP s to prevent identity leakage when VPN disconnects.
Sponsor
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10143

PostPosted: Sat Feb 12, 2011 11:56    Post subject: Reply with quote
The source net field accepts netmasks in CIDR notation such as 92.182.0.0/16, but there is a minor bug in that the GUI limits it to 15 characters total so if you have a bunch of triple digit octets then it might not fit.
_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
sjwoo
DD-WRT Novice


Joined: 20 Mar 2011
Posts: 1

PostPosted: Mon Mar 21, 2011 15:53    Post subject: Reply with quote
phuzi0n wrote:
The source net field accepts netmasks in CIDR notation such as 92.182.0.0/16, but there is a minor bug in that the GUI limits it to 15 characters total so if you have a bunch of triple digit octets then it might not fit.


I just looked up CIDR notation on Wikipedia and couldn't quite understand it. Let's say I want to let in all addresses in 100.100.***.*** -- how would I write this? 100.100.0.0/something, I figure...thanks.
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10143

PostPosted: Tue Mar 22, 2011 10:09    Post subject: Reply with quote
CIDR notation is just the number of bits in the subnet mask that are set. The /16 in my example corresponds to a netmask of 255.255.0.0. If you don't understand then use a netmask calculator.
_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
whozurdaddyo
DD-WRT Novice


Joined: 12 Mar 2011
Posts: 7

PostPosted: Thu Aug 11, 2016 17:43    Post subject: Reply with quote
phuzi0n wrote:
The source net field accepts netmasks in CIDR notation such as 92.182.0.0/16, but there is a minor bug in that the GUI limits it to 15 characters total so if you have a bunch of triple digit octets then it might not fit.


I just ran in to this bug, did a Google search and found this post from 2011. Shocked

Any chance for a bug fix here or steps to manually update this info?

Thx! Very Happy
whozurdaddyo
DD-WRT Novice


Joined: 12 Mar 2011
Posts: 7

PostPosted: Mon Aug 15, 2016 17:45    Post subject: CIDR notation field length limitations Reply with quote
Anyone?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware 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