Differences

This shows you the differences between two versions of the page.

Link to this comparison view

isc:labs:11 [2023/05/15 12:32]
florin.stancu [00 [0p]. Users]
isc:labs:11 [2024/05/20 13:21] (current)
vlad_iulius.nastase [02. [40p] TOR]
Line 12: Line 12:
  
 <​code>​ <​code>​
-sudo useradd -m red  +sudo useradd -m -s /​bin/​bash ​red  
-sudo useradd -m green  +sudo useradd -m -s /​bin/​bash ​green  
-sudo useradd -m blue +sudo useradd -m -s /​bin/​bash ​blue 
 </​code>​ </​code>​
  
Line 23: Line 23:
 For the next exercises, you will need to be logged in as users red/​green/​blue via ssh in order to generate the gpg key.  For the next exercises, you will need to be logged in as users red/​green/​blue via ssh in order to generate the gpg key. 
  
-  * Unfortunately,​ gpg doesn'​t work when the user is with ''​su''​ (tty permission problems, owned by ''​student''​). If you want to do this, use ''​tmux''​ after logging in: it allocates a new TTY ;)+  * Unfortunately,​ gpg doesn'​t work when the user is with ''​su''​ (tty permission problems, owned by ''​student''​). If you want to do this, either ​use ''​ssh'',​ or ''​tmux''​ after logging in: it allocates a new TTY ;)
   * Generate a private/​public key using the gpg tool for each of the three users previously created. **Use <​red|green|blue>​@cs.pub.ro for the emails ;) **   * Generate a private/​public key using the gpg tool for each of the three users previously created. **Use <​red|green|blue>​@cs.pub.ro for the emails ;) **
  
Line 195: Line 195:
 sudo apt install tor sudo apt install tor
 </​code>​ </​code>​
-  * Enable SOCKS proxy by editing /etc/torrc and uncommenting ''​SOCKSPort 9050''​ ;​)  ​+  * Enable SOCKS proxy by editing /etc/tor/torrc and uncommenting ''​SOCKSPort 9050''​ ;​)  ​
 <​note>​ Tor only supports TCP traffic, some make sure your DNS queries are done over TCP.</​note>​ <​note>​ Tor only supports TCP traffic, some make sure your DNS queries are done over TCP.</​note>​
 <​hidden>​ <​hidden>​
Line 224: Line 224:
 </​hidden>​ </​hidden>​
   * You are going to configure your local Firefox browser to use the Tor proxy on the VM. First, use ssh local port forwarding to make port 9050 available to your machine: <​code>​   * You are going to configure your local Firefox browser to use the Tor proxy on the VM. First, use ssh local port forwarding to make port 9050 available to your machine: <​code>​
-ssh -i <​fep_key_path>​ -o ProxyCommand="​ssh ​<​username>​@fep.grid.pub.ro ​-W %h:​%p" ​-L 9050:​localhost:​9050 student@<​VM_IP>​+ssh -<​username>​@fep.grid.pub.ro -L 9050:​localhost:​9050 student@<​VM_IP>​
 </​code>​ </​code>​
   * Next, change the **Firefox** Network Settings to use Socks5 proxy using the IP address and port from your VM. You can verify that your browser is using Tor by accessing the following [[https://​check.torproject.org/​|website]].   * Next, change the **Firefox** Network Settings to use Socks5 proxy using the IP address and port from your VM. You can verify that your browser is using Tor by accessing the following [[https://​check.torproject.org/​|website]].
Line 231: Line 231:
 </​hidden>​ </​hidden>​
  
-==== 11. [10p] Feedback ====+==== 03. [10p] Feedback ====
  
 Please take a minute to fill in the [[https://​forms.gle/​5Lu1mFa63zptk2ox9|feedback form]] for this lab. Please take a minute to fill in the [[https://​forms.gle/​5Lu1mFa63zptk2ox9|feedback form]] for this lab.
  
  
isc/labs/11.1684143153.txt.gz · Last modified: 2023/05/15 12:32 by florin.stancu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0