server can not acess the internet but can lan

Discussion in 'Installation/Configuration' started by spottyrover, Mar 4, 2014.

  1. spottyrover

    spottyrover New Member

    A couple of years back I set up my first web server. virtualbox
    I recently decided to upgrade the base set up for extra harddrive space.
    I followed this guide (http://www.howtoforge.com/perfect-server-debian-wheezy-apache2-bind-dovecot-ispconfig-3) and then copied all of the setting from my old set up.
    All looked as I just used the lan to test and set up wordpress etc.

    when I changed the ip address so that it was live the virtualbox could not access the net but still could locally
    some of my set up is

    /etc/network/interfaces

    # The loopback network interface
    auto lo
    iface lo inet loopback

    ### For the Internet ###
    allow-hotplug eth0

    auto eth0

    iface eth0 inet static

    address 203.xxx.xxx.xx
    netmask 255.255.255.0
    network 203.xxx.xxx.0
    broadcast 203.xxx.xxx.255
    gateway 10.x.x.1

    auto eth0:0

    iface eth0:0 inet static

    address 10.x.x.xxx
    netmask 255.255.255.0
    network 10.x.x.0
    broadcast 10.x.x.255
    gateway 10.x.x.1

    result from ispconfig iptables after shutting down fail2ban

    iptables -S (ipv4)
    -P INPUT ACCEPT
    -P FORWARD ACCEPT
    -P OUTPUT ACCEPT

    ip6tables -S (ipv6)
    -P INPUT ACCEPT
    -P FORWARD ACCEPT
    -P OUTPUT ACCEPT

    any help would be appreciated

    Thanks

    Dave
     
  2. tecsys

    tecsys New Member

    Are you sure you gateway is correct ? Address is 203xx and gateway is 10.x ?
     
  3. srijan

    srijan New Member HowtoForge Supporter

    Hi,

    What is the version of Virtual-box you are using?

    Br//
    Srijan
     
  4. spottyrover

    spottyrover New Member

    I just checked the working version and it is the same but that may mean it was a fluke that it worked. So if you have any suggestions.
    I am open to try them.

    Virtualbox is 4.3.0

    Thanks
    Dave
     
  5. srijan

    srijan New Member HowtoForge Supporter

    Ok what is your base/host machine on which you have installed the virtualbox?

    Br//
    Srijan
     
  6. srijan

    srijan New Member HowtoForge Supporter

    Hi spottyrover,

    Please install guesst-additions in your Debian-wheezy. I have faced same issue before & I sorted it as follows:

    At Debian run it as root.

    Please verify your kernel version in Debain by uname -r

    Then install the guest addition cd as :-

    [​IMG]

    Mount the cd as
    Finally go to the cd drive in bash & run the additions

    Finally reboot the VM, cross-check your VM networking parameters. It will work.

    Cheers.

    Br//

    Srijan
     
  7. spottyrover

    spottyrover New Member

    amd x4 640 with 12gig ram
    running pclinuxos 32 bit
    vbox is 32bit debian weezy

    thanks
    Dave
     
  8. srijan

    srijan New Member HowtoForge Supporter

    Please check the Above my above thread #6. It will definately sort out your issue.

    Thanx
    Srijan
     
  9. spottyrover

    spottyrover New Member

    Have to cook dinner now.

    I will recheck your suggestion later tonight. (but I thought it was installed)

    Thanks
    Dave
     
  10. spottyrover

    spottyrover New Member

    thanks for your input srijan but it did not work

    vbox network is set up as
    bridged adapter
    eth0
    promiscuous mode set to allow all
    it was set to deny ( same as old one)


    thanks

    Dave
     
  11. srijan

    srijan New Member HowtoForge Supporter

    One more thing, did you rebooted the VM-debian machine after making the changes??

    Br//
    Srijan
     
  12. spottyrover

    spottyrover New Member

    rebooted the image only
     
  13. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Please check the your networking parameters.
    Please ensure that UFW/IPTABLES don't exist.

    Br//
    srijan
     
  14. spottyrover

    spottyrover New Member

    result from ispconfig iptables after shutting down fail2ban

    iptables -S (ipv4)
    -P INPUT ACCEPT
    -P FORWARD ACCEPT
    -P OUTPUT ACCEPT

    ip6tables -S (ipv6)
    -P INPUT ACCEPT
    -P FORWARD ACCEPT
    -P OUTPUT ACCEPT

    It looks off to me but I have not played with iptables ( I used guarddog in the past, pity it has gone)

    Thanks
    Dave
     
  15. spottyrover

    spottyrover New Member

    The problem was the debian update itself.
    After comparing working and not working iptable I could not fing a difference.
    So I removed both iptables and fail2ban but I still could not access the net.

    So I started the update process again ( thats what I like about virtual images )
    Made sure that the virtualbox additions were working corectly.
    Then did a partial update of files which were not related to the server ( just in case )
    Then did the final update and it now works

    This problem was proberly a debian one which was fixed during the time of the first problem and finally getting it working.

    Thanks for all of the help

    Dave
     

Share This Page