Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
computer:video_openwrt_router_setup [2015/10/13 14:09]
tdobes
computer:video_openwrt_router_setup [2016/02/23 21:34] (current)
tdobes fix typo, add SSH on 2222
Line 22: Line 22:
 echo >> /​etc/​config/​firewall echo >> /​etc/​config/​firewall
 echo >> /​etc/​config/​firewall echo >> /​etc/​config/​firewall
-echo '# Allow SSD from WAN' >> /​etc/​config/​firewall+echo '# Allow SSH from WAN' >> /​etc/​config/​firewall
 echo '​config rule' >> /​etc/​config/​firewall echo '​config rule' >> /​etc/​config/​firewall
 echo $'​\toption name\t\tAllow-SSH-WAN'​ >> /​etc/​config/​firewall echo $'​\toption name\t\tAllow-SSH-WAN'​ >> /​etc/​config/​firewall
Line 29: Line 29:
 echo $'​\toption target\t\tACCEPT'​ >> /​etc/​config/​firewall echo $'​\toption target\t\tACCEPT'​ >> /​etc/​config/​firewall
 echo $'​\toption proto\t\ttcp'​ >> /​etc/​config/​firewall echo $'​\toption proto\t\ttcp'​ >> /​etc/​config/​firewall
 +echo '​config redirect'​ >> /​etc/​config/​firewall
 +echo $'​\toption name\t\tRedirect-SSH-2222-WAN'​ >> /​etc/​config/​firewall
 +echo $'​\toption src\t\twan'​ >> /​etc/​config/​firewall
 +echo $'​\toption dest\t\tlan'​ >> /​etc/​config/​firewall
 +echo $'​\toption target\t\tDNAT'​ >> /​etc/​config/​firewall
 +echo $'​\toption proto\t\ttcp'​ >> /​etc/​config/​firewall
 +echo $'​\toption src_dport\t2222'​ >> /​etc/​config/​firewall
 +echo $'​\toption dest_port\t22'​ >> /​etc/​config/​firewall
 +echo $'​\toption dest_ip\t\t192.168.61.1'​ >> /​etc/​config/​firewall
  
 echo '​192.168.61.1 video1-router router'​ >> /etc/hosts echo '​192.168.61.1 video1-router router'​ >> /etc/hosts
computer/video_openwrt_router_setup.txt · Last modified: 2016/02/23 21:34 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS