Merge Request #18

Merged
softwarepublico/softwarepublico!18
Created by Athos

Additions to fix external firewall

Assignee: Sergio Oliveira
Milestone: None

Merged by Sergio Oliveira

Source branch has been removed
Commits (1)
3 participants
    9fe63c7bd60deeb55e409a1d7dd173f5?s=40&d=identicon
    Sergio Oliveira started a discussion on the diff
    last updated by Sergio Oliveira
    cookbooks/firewall/templates/host-reverseproxy/iptables-filter.erb
    7 7  
    8 8 # Real SSH connection
    9 9 -A INPUT -s <%= node['peers']['integration'] %> -p tcp -m state --state NEW --dport <%= node['config']['alt_ssh_port'] %> -j ACCEPT
      10 +
      11 +# Allow forwarding to integration on port 22
    3
    • 9fe63c7bd60deeb55e409a1d7dd173f5?s=40&d=identicon
      Sergio Oliveira @seocam

      Do we really need to open both ways? I would expect FORWARD to work only using line 12.

      Choose File ...   File name...
      Cancel
    • 31cd1dbcab9d8aa084c2ab720b965f11?s=40&d=identicon
      Athos @athos (Edited )

      Edit: git pull/push working properly on port 22

      Whenever we remove line 13, it logs:

      FORWARD: SRC=[integration] DST=[user in external network] SPT=22 DPT=[high port] ACK SYN.

      In this case, I believe we do need to forward the responses to the other side. Would that be a problem? I also tested these new rules git communications on port 22 (basically pull and push) and it works fine.

      Choose File ...   File name...
      Cancel
    • 9fe63c7bd60deeb55e409a1d7dd173f5?s=40&d=identicon
      Sergio Oliveira @seocam

      Makes sense. Ok! :)

      Choose File ...   File name...
      Cancel
  • 9fe63c7bd60deeb55e409a1d7dd173f5?s=40&d=identicon
    Sergio Oliveira @seocam

    mentioned in merge request !17

    Choose File ...   File name...
    Cancel
  • 31cd1dbcab9d8aa084c2ab720b965f11?s=40&d=identicon
    Athos @athos

    mentioned in merge request !17

    Choose File ...   File name...
    Cancel
  • 800e3af93350753db9dee1864cef10ff?s=40&d=identicon
    Thiago Ribeiro @thiago
    Choose File ...   File name...
    Cancel