BaronVonchesto
Occasional Visitor
So some background first on what I'm doing. I have an Asus AC66U running ASUSWRT-merlin (380.70).
My main home network is running on 192.168.1.xxx/24
I'm planning to engage a freelance dev on fiverr to do some dev work for me, to interface with an industrial device using my raspberry pi. To that end I need to give WAN SSH access to my pi so the dev can work remotely. However I'm concerned about the security of giving access to my home network to some unknown guy on the internet, so want to restrict access as much as possible.
So what I had in mind was to put the raspberry pi onto a guest wifi network where I can assign a "static" DHCP IP to the raspberry pi (say 192.168.2.2). I will port forward ports 80, 443 and (some other port translated to 22) to the raspberry pi so that the dev can ssh to the pi and the web server is accessible from WAN.
However I also want to be able to SSH/SFTP to the pi from my main LAN, and also access the web server, while blocking all access to my LAN from the pi (so allow initiation of traffic from 192.168.1.x -> 192.168.2.x but not the other way round), other than that I need the pi to have access to the internet as usual. I also want to make sure the pi cannot SSH to the router or access the web admin interface of the router.
Is this doable with Merlin? I have a basic idea of how IPTABLES work, but not enough knowledge to create the rules myself.
Or else I'm not averse to switching from Merlin to FreshTomato, though I'd like to avoid this if I can since it would mean downtime of internet access for my family who are online 24/7
Here's an image my my proposed network topology and what i'd like to acheive:
PS: once the dev is done with his work I will revoke the SSH key i give him and remove the port forwarding set in the router.
My main home network is running on 192.168.1.xxx/24
I'm planning to engage a freelance dev on fiverr to do some dev work for me, to interface with an industrial device using my raspberry pi. To that end I need to give WAN SSH access to my pi so the dev can work remotely. However I'm concerned about the security of giving access to my home network to some unknown guy on the internet, so want to restrict access as much as possible.
So what I had in mind was to put the raspberry pi onto a guest wifi network where I can assign a "static" DHCP IP to the raspberry pi (say 192.168.2.2). I will port forward ports 80, 443 and (some other port translated to 22) to the raspberry pi so that the dev can ssh to the pi and the web server is accessible from WAN.
However I also want to be able to SSH/SFTP to the pi from my main LAN, and also access the web server, while blocking all access to my LAN from the pi (so allow initiation of traffic from 192.168.1.x -> 192.168.2.x but not the other way round), other than that I need the pi to have access to the internet as usual. I also want to make sure the pi cannot SSH to the router or access the web admin interface of the router.
Is this doable with Merlin? I have a basic idea of how IPTABLES work, but not enough knowledge to create the rules myself.
Or else I'm not averse to switching from Merlin to FreshTomato, though I'd like to avoid this if I can since it would mean downtime of internet access for my family who are online 24/7
Here's an image my my proposed network topology and what i'd like to acheive:
PS: once the dev is done with his work I will revoke the SSH key i give him and remove the port forwarding set in the router.
Last edited: