# Having an issue with Raspberry Pi 4, acting as a router

**URL:** <https://forums.pimoroni.com/t/having-an-issue-with-raspberry-pi-4-acting-as-a-router/25261>\
**Category:** Raspberry Pi\
**Created:** [August 12, 2024, 5:57am UTC](https://forums.pimoroni.com/t/having-an-issue-with-raspberry-pi-4-acting-as-a-router/25261 "2024-08-12T05:57:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simijames3104](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@simijames3104](https://forums.pimoroni.com/u/simijames3104)\
**Post date:** [August 12, 2024, 5:57am UTC](https://forums.pimoroni.com/t/having-an-issue-with-raspberry-pi-4-acting-as-a-router/25261/1 "2024-08-12T05:57:48Z")

</div>

Hello everyone,

I hope everyone’s fine. I am new to this forum, actually I came to this forum while searching for my issue. That’s the thread I am talking about: [https://archlinuxarm.org/forum/viewtopi … 15&t=16910](https://archlinuxarm.org/forum/viewtopic.php?f=15&t=16910) but there’s no solution.

I am working on a Raspberry Pi 4, I am using this model: [https://www.theengineeringprojects.com/ … sheet.html](https://www.theengineeringprojects.com/2021/03/what-is-raspberry-pi-4-pinout-specs-projects-datasheet.html) and I am trying to make it work as a router.

I have connected it via Ethernet to my main internet provider and am now making it act as a DNS server. Now when I try to port forward the DNS request to my original internet provider, I receive error during prerouting. I get this error:

$this-\>bbcode\_second\_pass\_code(‘’, ‘tables: No chain/target/match by that name.’)

Although the first request works fine, the below one:  
$this-\>bbcode\_second\_pass\_code(‘’, ‘sudo iptables -A fw-open -p udp -d 10.24.90.247 --dport 53 -j ACCEPT’)

Please help me out here.

Thanks.

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [August 12, 2024, 4:07pm UTC](https://forums.pimoroni.com/t/having-an-issue-with-raspberry-pi-4-acting-as-a-router/25261/2 "2024-08-12T16:07:27Z")

</div>

I would suggest that you ask your question somewhere at StackExchange. Chances are much higher that you find qualified readers there. This does not rule out that readers of this forum have a good knowledge of networking and firewalling, but these are not core topics here.

---

<div class="post-metadata">

**Author:** ![PiguyAnge](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/piguyange/32/11560_2.png) [@PiguyAnge](https://forums.pimoroni.com/u/PiguyAnge)\
**Post date:** [August 22, 2024, 7:42am UTC](https://forums.pimoroni.com/t/having-an-issue-with-raspberry-pi-4-acting-as-a-router/25261/3 "2024-08-22T07:42:03Z")

</div>

Using the desktop on the rpiOS bookworm you can make a hotspot & share internet right from you panels network options. Then I use nmap commands at the prompt to scan for what devices connect & ip, since its not something available via gui. I use this method for my motion eye network. I dont share my internet to them unless i want to upgrade. In which case i add a wifi dongle and connect that way (altho one could use eth0)
