I looked through the forums, cant quite find what im looking for there. I need some assistance with my Host network configuration and the Guest VMs.
I have the host installed on Mint 18 Sarah Cinnimon 64bit. Guests are Debian8 Jessi(Server), Ubuntu16.04 Xerial(Server), Kali&metasploit. Everything works except networking. All the guests have Internet access, can ping each other, however I cannot SSH into the Debian8 Server from host except using bridged networking. Also theres no GUI on the Debian or Ubuntu. Im basically trying to create a Server/Lab & Pentest/Lab. Ive looked at quite a few online toturials with videos that explain these networking setups, but I just dont get it that good in linux yet. Havent done serious networking in a decade and that was all on Microsoft systems not Linux/Unix systems.
If i get the Debian server going I should be all set to figure out the rest. So far the only way I can SSH into the Debian is through Bridged Network. But Im almost positive I need to use NAT Network, Also on my Host network, what Is a universal way to configure it with pre-written scripts? Or do I need to setup a static Host network, Configure the router and DHCP all the VMs? Use a VLAN for Kali at first Im guessing too. Like i said I really need some help deciding the best course of action here. I dont want to run some Kali tools and accidently whipe out my Main Host Pc.
I'm useing VB 5.1.8 and it has full extentions added to ALL containers, USB3.0 works etc.... Debian8 Jessi Server with openSSH and basic system settings no major server apps like php/mysql email, none of that yet!
/etc/network/interfaces contents from Debian8
Code: Select all
ldeb1@debian1:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
One part I struggle with is what to edit? I know how to use Nano fine and VIM sort of. I just dont understand what actually needs to be edited in the interfaces file because theres no network address or mask or broadcast.
Network:
Code: Select all
ldeb1@debian1:~$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:80:86:0b brd ff:ff:ff:ff:ff:ff
inet 192.168.1.5/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe80:860b/64 scope link
valid_lft forever preferred_lft forever
this is my Hosts network setup, do I need to make any major changes?
Code: Select all
@3lackho1e ~ $ ifconfig
\bridge0 Link encap:Ethernet HWaddr 4c:cc:6a:0f:ba:db
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::c5db:5a07:3742:5d9d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4860423 errors:0 dropped:0 overruns:0 frame:0
TX packets:2816925 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9944385072 (9.9 GB) TX bytes:207229406 (207.2 MB)
enp7s0 Link encap:Ethernet HWaddr 4c:cc:6a:0f:ba:db
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7023128 errors:0 dropped:0 overruns:0 frame:0
TX packets:2816925 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10155106130 (10.1 GB) TX bytes:207229406 (207.2 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:786628 errors:0 dropped:0 overruns:0 frame:0
TX packets:786628 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:61273880 (61.2 MB) TX bytes:61273880 (61.2 MB)
virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
I would like to use the Debian8/ubuntu16.4/CentOS7 to mainly learn LAMP mySQL PhP and other normal server applications which I will clone the VMs and add to the Kali/Metasploit LAB where I can learn PenTesting. I need Servers that function, and servers I can destroy and learn from.