Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add templates for extra firewall rules like open port 80 #142

Closed
rubo77 opened this issue Oct 31, 2015 · 2 comments
Closed

add templates for extra firewall rules like open port 80 #142

rubo77 opened this issue Oct 31, 2015 · 2 comments
Labels

Comments

@rubo77
Copy link
Contributor

rubo77 commented Oct 31, 2015

there are some rules that have to be added depening on the case, for example

open port 80:

https://github.com/rubo77/ffmap-backend-bridge#-allow-port-80

cat > /etc/iptables.d/600-Allow-HTTP <<EOF
# Allow ssh on wan and mesh
ip46tables -A wan-input -p tcp -m tcp --dport 80    -j ACCEPT
ip46tables -A mesh-input -p tcp -m tcp --dport 80    -j ACCEPT
EOF

allow all connections from wan for experimental envionments

https://github.com/ffnord/ffnord-example/blob/master/bootstrap.sh

cat > /etc/iptables.d/199-allow-wan << EOF
## allow all connections from wan for experimental envionments
ip46tables -A wan-input -j ACCEPT
EOF

where could we put these templates?

@ohrensessel
Copy link
Contributor

we will not put these into the script as long as there is no use case in
the script for them. there simply is no modul depending on port 80 being
open.

2015-10-31 12:42 GMT+01:00 Ruben Barkow notifications@github.com:

there are some rules that have to be added depening on the case, for
example

#open port 80:
https://github.com/rubo77/ffmap-backend-bridge#-allow-port-80

cat > /etc/iptables.d/600-Allow-HTTP <<EOF

Allow ssh on wan and mesh

ip46tables -A wan-input -p tcp -m tcp --dport 80 -j ACCEPT
ip46tables -A mesh-input -p tcp -m tcp --dport 80 -j ACCEPT
EOF

#allow all connections from wan for experimental envionments
https://github.com/ffnord/ffnord-example/blob/master/bootstrap.sh

cat > /etc/iptables.d/199-allow-wan << EOF

allow all connections from wan for experimental envionments

ip46tables -A wan-input -j ACCEPT
EOF

where could we put these templates?


Reply to this email directly or view it on GitHub
#142.

@rubo77
Copy link
Contributor Author

rubo77 commented Nov 1, 2015

I thought more of adding those scripts in a disabled state somehow, so in case you need to enable them you would have a simple option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants