GithubHelp home page GithubHelp logo

otuslinuxproff_hw37's Introduction

otuslinuxproff_hw37

iptables

Задание

Что нужно сделать?
  • реализовать knocking port

  • centralRouter может попасть на ssh inetrRouter через knock скрипт

  • добавить inetRouter2, который виден(маршрутизируется (host-only тип сети для виртуалки)) с хоста или форвардится порт через локалхост. запустить nginx на centralServer. пробросить 80й порт на inetRouter2 8080. дефолт в инет оставить через inetRouter. Формат сдачи ДЗ - vagrant + ansible реализовать проход на 80й порт без маскарадинга*

Что сделано:

  • portknocking: c машины server на router, команда для доступа на него knock 192.168.56.10 3000 4000 5000 && ssh [email protected]

  • сервер nginx: установлен на машине server и доступен на порту 8080, который проброшен на машину router на порт 80 и от туда проброшен vagrant-ом на localhost порт 8080. форвардинг портов настроен без MASQUERADE, он применяется для маршрутизации

  • добавил default route через машину router и интерфейc дополнительной приватной сети eth1. Вагрантовский маршрут не удалял т.к через него работает ansible. Удалить коммандой sudo ip route flush dev eth0

Запуск:

vagrant up

Screenshots:

image

image

image

otuslinuxproff_hw37's People

Contributors

nvkmv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.