# What is the script to allow all traffic from a specific WAN IP address .

**URL:** <https://forums.digi.com/t/what-is-the-script-to-allow-all-traffic-from-a-specific-wan-ip-address/22323>\
**Category:** Digi TransPort WR (Series)\
**Tags:** samss\
**Created:** [April 1, 2021, 8:44am UTC](https://forums.digi.com/t/what-is-the-script-to-allow-all-traffic-from-a-specific-wan-ip-address/22323 "2021-04-01T08:44:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamSalt](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@SamSalt](https://forums.digi.com/u/SamSalt)\
**Post date:** [April 1, 2021, 8:44am UTC](https://forums.digi.com/t/what-is-the-script-to-allow-all-traffic-from-a-specific-wan-ip-address/22323/1 "2021-04-01T08:44:52Z")

</div>

What is the exact firewall script to allow certain WAN IP as is comes into the Cellular interface of my Digi WR31 to be allowed.

---

<div class="post-metadata">

**Author:** ![Peterss41](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@Peterss41](https://forums.digi.com/u/Peterss41)\
**Post date:** [April 14, 2021, 8:34am UTC](https://forums.digi.com/t/what-is-the-script-to-allow-all-traffic-from-a-specific-wan-ip-address/22323/2 "2021-04-14T08:34:16Z")

</div>

The particular firewall rule would be:  
pass in log break end on ppp 1 from x.x.x.x to addr-ppp 1

Where x.x.x.x would be the WAN IP address.

Because I don’t know what other rules you might have or need, I won’t be able to provide the whole set of rules.

---

<div class="post-metadata">

**Author:** ![SamSalt](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@SamSalt](https://forums.digi.com/u/SamSalt)\
**Post date:** [April 14, 2021, 4:16pm UTC](https://forums.digi.com/t/what-is-the-script-to-allow-all-traffic-from-a-specific-wan-ip-address/22323/3 "2021-04-14T16:16:44Z")

</div>

Thanks Peterss41, great I will try this today 🙂

---

<div class="post-metadata">

**Author:** ![basicdave](https://avatars.discourse-cdn.com/v4/letter/b/db5fbb/32.png) [@basicdave](https://forums.digi.com/u/basicdave)\
**Post date:** [August 9, 2021, 9:37am UTC](https://forums.digi.com/t/what-is-the-script-to-allow-all-traffic-from-a-specific-wan-ip-address/22323/4 "2021-08-09T09:37:09Z")

</div>

For HTTP:  
pass in break end proto tcp from to any port=http flags S!A inspect-state

Any traffic  
pass in log break end from to addr-ppp 1 inspect-state
