User:Mernits: Difference between revisions
From ICO wiki
Jump to navigationJump to search
Line 67: | Line 67: | ||
=Cheat sheet= | =Cheat sheet= | ||
<source lang="bash"> | <source lang="bash"> | ||
ip route show | |||
ip rule show | |||
</source> | </source> | ||
Revision as of 14:27, 6 October 2011
Shaper installation
Lab setup
|-----------| | Victim | |wordpress | |-----------| NIC1 - NAT - to Internet NIC2 - internal 10.1.1.2 | | NIC3 - internal 10.1.1.1 |------------------| | shaper | |NIC 1 - NAT | |NIC 2 - host only | |NIC 3 internal | |NIC 4 internal | |------------------| NIC 4 - internal 10.10.10.1 | | NIC 1 internal 10.10.10.2 |------------------| | Attacker | | NIC 1 - internal | | | |------------------|
Virtual machines
Get from Margus
Config
Configure attacker
NIC internal IP 10.10.10.2 GW 10.10.10.1 Netmask 255.255.255.0
nameserver 8.8.8.8
Configure router/traffic shaper
NIC 0 - NAT -to get internet
NIC 1 - for ssh / http from host IP 192.168.56.102 (or 101)
NIC 2 - internal 10.10.10.1
NIC 2 - external 10.1.1.1
Configure wordpress
NIC 0 - internal 10.1.1.2
NIC 1 - host only - ssh/web browser
Cheat sheet
ip route show
ip rule show
Links
Virtual networks with virtualbox - http://www.virtualbox.org/manual/ch06.html
Linux router - http://www.stanford.edu/~fenn/linux/