Set up port forwarding

  • Thread starter Thread starter satimis
  • Start date Start date
S

satimis

Hi all,

Host Ubuntu 12.04 desktop 64bit
Guest Ubuntu 12.04 LAMP/desktop 64bit
VirtualBox
2 NICs
Optic Fibre Broadband connection - interface
(connected to onboard NIC)
Static IP
Router not available

Host:-
$ cat /etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address xx.xx.xxx.xx (static IP)
dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
netmask 255.255.255.252
broadcast xx.xx.xxx.xx
gateway xx.xx.xxx.xx
Guest:-
$ cat /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
$ sudo ifconfig
[sudo] password for satimis:
Code:
eth5 Link encap:Ethernet HWaddr 08:00:27:d3:83:91
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fed3:8391/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:85 errors:0 dropped:0 overruns:0 frame:0
TX packets:132 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32891 (32.8 KB) TX bytes:16748 (16.7 KB)

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:16436 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3724 (3.7 KB) TX bytes:3724 (3.7 KB)

Network -> Adpater 1
Enable Network Adapter
Attached to: NAT


Please advise how to setup port-forwarding assigning a static IP to Guest so that the webserver can be connected/browsed on Internet. I have been searching a while and couldn't find a guide to follow. Pointers would be appreciatd.

Thanks

Rgds
satimis

Continue reading...
 
Back
Top