inbound firewall rule to ssh tunneled port
Posted: Tue May 10, 2016 5:13 pm
Hi Guys,
I created a SSH tunnel from my remote Debian 8 server to my Gargoyle router at home, this works with the following command :
ssh -p 6080 root@server.me -R 127.0.0.1:6070:0.0.0.0:22
Port 6070 is mapped to the localhost interface of the Gargoyle router, I can even set up an ssh session from the cli of the Gargoyle router to my Debian server over the SSH tunnel.
Now I've tried to create an inbound firewall rule to the mapped 6070 port, I tried it via the GUI, I tried it manually by editing the firewall config rule.
config remote_accept 'ra_6070_6070'
option local_port '6070'
option remote_port '6070'
option proto 'tcp'
option zone 'wan'
However this does not seem to work.
Troubleshooting :
- Tried to assign it to the LAN ip of the gargoyle 192.168.1.1 which works from the backend but an inbound firewall rule does not work.
- Tried differents ports for what that's worth
- Checked the authentication logs on the Debian server I don’t see any connection / login attempts
I created a SSH tunnel from my remote Debian 8 server to my Gargoyle router at home, this works with the following command :
ssh -p 6080 root@server.me -R 127.0.0.1:6070:0.0.0.0:22
Port 6070 is mapped to the localhost interface of the Gargoyle router, I can even set up an ssh session from the cli of the Gargoyle router to my Debian server over the SSH tunnel.
Now I've tried to create an inbound firewall rule to the mapped 6070 port, I tried it via the GUI, I tried it manually by editing the firewall config rule.
config remote_accept 'ra_6070_6070'
option local_port '6070'
option remote_port '6070'
option proto 'tcp'
option zone 'wan'
However this does not seem to work.
Troubleshooting :
- Tried to assign it to the LAN ip of the gargoyle 192.168.1.1 which works from the backend but an inbound firewall rule does not work.
- Tried differents ports for what that's worth
- Checked the authentication logs on the Debian server I don’t see any connection / login attempts