Advertisement
Narzew

BHStyle - Firewall Configuration

Nov 5th, 2014
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. At this stage you should be looking at the desktop for "DSL" (Damn Small Linux).
  2. I need to talk about the mouse first. This particular virtual machine as well as your main operating system (windows) both want control of your mouse. Both cannot have control of your mouse at the same time however. Therefore, you have to choose whether the mouse will be used by your virtual machine, or by Windows.
  3. When you click into your virtual machine, it has the effect of passing control of the mouse to the virtual machine. That means you cannot move your mouse cursor past the boundaries of that virtual machine. In order to give mouse control back to windows, e
  4. That is to say, you have two ctrl keys. One on the left of your keyboard, and one on the right. Press the ctrl key that is on the right of your keyboard. This will give mouse control back to windows.
  5. Practice this a bit. Practice clicking into the window, moving the mouse cursor around, pressing right ctrl, and moving the windows mouse cursor around. Get the feel of it.
  6. You should see a window that looks something like a web browser, with some text in it including words such as "Getting Started with DSL". First, close that window.
  7. If your mouse is not working.
  8. First, click inside the window that your virtual machine is running in). Now try moving your mouse cursor. If you do not see the mouse cursor moving around, then press (RIGHT CTRL + I). Now move your mouse cursor again.
  9. If you notice that you are moving your "main" mouse cursor over the window, but you do not see the "DSL" black mouse cursor moving, then click again into that window. If you do this a few times, you should notice that the mouse begins to work. You may hav
  10. 1. Once the mouse is working inside of your virtual machine, go ahead and close the window entitled "Getting Started with DSL"
  11. If you cannot see the full virtual machine window, for example because your screen resolution is set so that some of the window goes too low.
  12. First, press RIGHT CTRL+I until you have your main windows white mouse cursor back). Now, click on "Machine" in the menu at the top of the window.
  13. Select "Switch to Scale Mode"
  14. Click "Switch"
  15. Now you will have converted your firewall window to a smaller size, and you will be able to resize it. You may need to press "right ctrl" to get a windows mouse cursor (which you will need in order to resize this window
  16. Now simply resize it to the size that works for you, and then click into the window to be able to use the black mouse cursor inside the virtual machine. I recommend you maximize this window to make sure you can read everything clearly.
  17. 2. Right click anywhere on the desktop, go to System (a red folder), go to Daemons, ssh, and start.
  18. 3. Right click again anywhere on the desktop, go to XShells -> Root Access -> Transparent
  19. 4. Now you have a window that you can type in. Type exactly as
  20. passwd
  21. Once you type this and hit enter, it will ask you for a password. This is a password for full access to the firewall. Make it at least 8 characters in size.
  22. *** IMPORTANT: Do not forget your firewall password. You will need it later in the guide. ***
  23. When you have successfully changed your password, it will say "Password changed."
  24. 5. Now type exactly as shown below, into the same window:
  25. ifconfig eth1 10.0.3.1
  26. 6. It will not say anything after you hit enter, it will just return you back to the prompt.
  27. Now our firewall server is ready. We want to save this state so that we can get back to it easy in the future.
  28. Press RIGHT CTRL+S
  29. 7. Now you will be looking at a window that says "Take Snapshot of Virtual Machine". Just click "Ok"
  30. 8. Now, let's test this out to confirm it works as we expect. Go ahead and close the virtual machine by clicking the "X" in the top right corner. A menu will come up. Select "Power off the machine" and click ok. Do NOT check the box called "Restore current snapshot".
  31. And now you should be once again at the VirtualBox manager. You will see "Firewall (Shapshot 1), Powered Off"
  32. 9. Make sure that "Firewall (Snapshot 1), Powered Off" is selected. At the top right of your VirtualBox Manager is a button that says: "Snapshots (1)". Click it.
  33. 10. Click on "Snapshot 1", the top-most selection. This will highlight it.
  34. 11. Now right click it, and click on "Restore Snapshot"
  35. 12. A dialog box will come up asking if you are sure, click "Restore"
  36. 13. Now click the "Start" button at the top with the large green arrow.
  37. 14. Any dialog boxes that come up with a check box saying "Do not show this information again", simply check the check-box, and click ok. Do not worry about any of those.
  38. Remember, if you do not have immediate control of the mouse inside the virtual machine, simply press RCTRL+I (press right ctrl and "I" at the same time) and click into it until you have mouse control.
  39. Now your firewall is good to go. Any time you need it, just go to the VirtualBox Manager and follow steps 9 through 14 above. You do not have to go through the whole setup process again at any time in the future. Your firewall is ready.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement