Guest User

Mohammad - iocage IPs

a guest
Nov 30th, 2016
217
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Hi guys,
  2.  
  3.  
  4. Big fan of the show, thanks for all your hard work, please keep it up :)
  5.  
  6.  
  7. I have a dedicated server where I host my personal blog and some files for backup. I recently added a second IP to set up a jail for a website I will be hosting for my brother. I added the jail using the following command
  8.  
  9.  
  10. root@asgard:~ # iocage create tag=demo ip4_addr="em0|XX.XX.XX.XX/32"
  11.  
  12. The jail works as expected, but when I start the jail and the IP address is added to the host, nginx, ssh, and all other services start listening on both IPs.
  13.  
  14. Is there a way to prevent nginx from listening on both IPs other than using the "listen IP:80" option? I remember that during one episode of the show you talked about using the above way for configuration in order not have the host services listening on all IPs?
  15.  
  16. Thanks again and good luck
  17.  
  18. Your only Jordanian listener and BSD user 😃
RAW Paste Data