Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Having issues with Raspberry Pi acting as a router

  • 12-08-2024 6:14am
    #1
    Registered Users, Registered Users 2 Posts: 1


    Hello everyone,

    I hope everyone's fine. I am new to this forum, actually I came to this forum while searching for my issue.

    I am working on a Raspberry Pi 4 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.

    Tagged:


Comments

  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb


    Hi.

    Any more context on why you're doing it this way? A few questions andwered might help you get help!

    Can you resolve addresses from the command line on the Pi?

    What error appears when you typed the second iptables command? You could type the iptables command at a prompt.

    What base OS are you using on the Pi?

    Have you installed a DNS server on it?

    If not are you just trying to port forward to a known working DNS server instead?

    What are suitable external DNS forwarders for you to use?

    Post up the output of iptables-save or iptables -L so we can see what tables exist and what they're doing.

    I'd suggest installing a simple DNS server like dnsmasq on the Pi first and get the rest of the router working. Forward those requests to your other DNS servers and see if it's ok with that.



  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb


    Oh I see - no chain by that name.

    Post the output as suggested - you may have mixed up two scripts and ended up using a name that doesn't exist on your system.



Advertisement