I have my raspberry pi 2 connected via Ethernet to our router which is connected to the internet. The Pi 2 is used as a media server but I would like to be able to ssh to the pi 2 and disable and enable when it should have access to the internet. Even if it doesn't have access to the internet I would like to be able to ssh to it from out internal network. Is there an easy way to do this instead of changing my router configuration and rebooting each time?
I can ssh to the pi 2 now I'm just not sure how to prevent it from getting or sending traffic over the internet.
PS: I'm using Linux raspberrypi 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux Thanks