Taula de continguts

PlayGround

Caixes - Wrap

Un advertiment o warning.

icons

https://pictogrammers.com/library/mdi/

Tab Box plug-in

This is my bold text

Versió Linux

Java lalala

Versió Windows

Windows lalala

Vagrant

Vagrantfile per a tenir un «client» linux passant per una gateway Kali i poder inspeccionar el trànsit amb Wireshark.

Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
 
Vagrant.configure("2") do |config|
 
  config.vm.define "client" do |client|
    client.vm.box = "ubuntu/jammy64"
    client.vm.network "private_network", ip: "192.168.56.100"
    client.vm.provider "virtualbox" do |vb|
      # Display the VirtualBox GUI when booting the machine
      vb.gui = true
      # Customize the amount of memory on the VM:
      vb.memory = "4096"
    end
  end
 
  config.vm.define "gateway" do |gateway|
    gateway.vm.box = "kalilinux/rolling"
    gateway.vm.network "private_network", ip: "192.168.56.10"
    gateway.vm.provider "virtualbox" do |vb|
      # Display the VirtualBox GUI when booting the machine
      vb.gui = true
      # Customize the amount of memory on the VM:
      vb.memory = "4096"
    end
  end
 
end

Mes coses

Seguint aquest article:

Per canviar la default gateway al client:

change_default_gateway.sh
route add default gw 192.168.56.10
netstat -rn

Per fer de gateway a Kali:

gateway.sh
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT

Imatges

android-camera.jpg

Taules

Heading 1 Heading 2 Heading 3
Row 1 Col 1 Row 1 Col 2 Row 1 Col 3
Row 2 Col 1 some colspan (note the double pipe)
Row 3 Col 1 Row 3 Col 2 Row 3 Col 3