Advertisement
moneron

NAT lab: WWW-server

Sep 3rd, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. # Config of Web-server in NAT lab
  2. #
  3. # Management in EVE-NG:
  4. /system identity
  5. set name=SERVER
  6. /tool romon
  7. set enabled=yes
  8.  
  9. # Address and route
  10. /ip address
  11. add address=192.168.0.100/24 interface=ether1 network=192.168.0.0
  12. /ip route
  13. add distance=1 gateway=192.168.0.1
  14.  
  15. # Create 2 certs
  16. /certificate
  17. add common-name=myCA name=myCA
  18. sign myCA ca-crl-host=192.168.0.100;
  19. :delay 2;
  20. add common-name=192.168.0.100 name=www-ssl;
  21. sign www-ssl ca=myCA;
  22. :delay 2;
  23. set www-ssl trusted=yes
  24.  
  25. # Set https service to use certificate
  26. /ip service
  27. set www-ssl certificate=www-ssl disabled=no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement