• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Routing and installation problem

Scheduled Pinned Locked Moved Unsolved
Linux Problems
3
19
4.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    DZKeeper
    last edited by DZKeeper Oct 9, 2016, 6:15 PM Oct 10, 2016, 12:12 AM

    Server
    • FOG Version: 1.3.0-RC-13
    • OS: Xubuntu 14.04
    Description

    Not certain where to start, As I had my setup working great, but then try to upgrade from 1.3.0-RC-11 to 1.3.0-RC-13 and something is not working.

    First thing first, when I did the procedure to upgrade, I did the following:

    • cd /root/fogproject
    • git pull
    • cd bin
    • ./installfog.sh

    I got an error :

    • Enabling FOGMulticastManager Service…Failed!

    While Everything seemed to work fine, my clients dont have access to internet anymore (might not be related to fog ??). My Xubuntu/Fog box is a dual nic box that act as a router for the lab machine that need reimaging from time to time. I followed this guide to configure the router: https://help.ubuntu.com/community/Router

    The clients have an ip assigned by dhcp, a gateway, but nothing goes trhu, ping etc…

    Like said , I am not sure where to start for troubleshooting this.

    Any help is appreicated.

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by Oct 10, 2016, 12:53 AM

      ok as for the routing issue.

      Can the FOG server (which is acting as a router) reach the internet?

      From the FOG server make sure its default route points to router that has internet access, confirm that with traceroute.

      Make sure the FOG server can ping both directions.

      To turn a multi-homed (more than one nic) linux box into a router you need to enable the ip_forward kernel parameter. With the ip_forward set to 1 the linux computer will now pass traffic between its interfaces.

      If the FOG server (acting as a gateway) can ping an internet device and it can ping devices on the lab LAN then I would check to see if (for some reason) the firewall has been enabled on the FOG server. the command sudo iptables -L should return 3 rules all with accept. If you have questions if the firewall is enabled post the output here and I will tell you.

      From a computer on your LAB LAN. Do a tracert -d <ip_address_on_business_LAN> to see where your data packets are really heading.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      1 Reply Last reply Reply Quote 0
      • D
        DZKeeper
        last edited by Oct 10, 2016, 1:01 AM

        @george1421 : Thanks for the prompt reply.

        • Yes,the FOG server can reach internet.

        • The FOG cannot ping both directions. I cannot ping a host in the lab

        • ip_forward is enable

        • Output of sudo iptables -L:

        Chain INPUT (policy ACCEPT)
        target prot opt source destination

        Chain FORWARD (policy DROP)
        target prot opt source destination
        ACCEPT all – anywhere anywhere ctstate RELATED,ESTABLISHED
        ACCEPT all – anywhere anywhere
        LOG all – anywhere anywhere LOG level warning

        Chain OUTPUT (policy ACCEPT)
        target prot opt source destination

        • tracert -d will say destination host unreachable at first hop
        G 2 Replies Last reply Oct 10, 2016, 1:06 AM Reply Quote 0
        • G
          george1421 Moderator @DZKeeper
          last edited by george1421 Oct 9, 2016, 7:07 PM Oct 10, 2016, 1:06 AM

          @DZKeeper That forward chain is basically the default accept even though the default action is drop.

          If you issue the following command sudo service iptables stop then rerun the iptables -L All policies should be policy accept or it may give you the iptables is not running too.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          1 Reply Last reply Reply Quote 0
          • G
            george1421 Moderator @DZKeeper
            last edited by george1421 Oct 9, 2016, 7:07 PM Oct 10, 2016, 1:07 AM

            • tracert -d will say destination host unreachable at first hop

            Then just to be clear the target computers on the LAB LAN can ping the FOG server, just not through it (that may be governed by the FORWARD chain)

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            D 1 Reply Last reply Oct 10, 2016, 1:10 AM Reply Quote 0
            • D
              DZKeeper @george1421
              last edited by Oct 10, 2016, 1:10 AM

              @george1421 You are right, can ping but not trough.

              As for the other command:

              sudo service iptables stop
              iptables: unrecognized service

              G 1 Reply Last reply Oct 10, 2016, 1:14 AM Reply Quote 0
              • G
                george1421 Moderator @DZKeeper
                last edited by george1421 Oct 9, 2016, 7:15 PM Oct 10, 2016, 1:14 AM

                @DZKeeper Maybe Xubuntu is Systemd based and not SysV. (Sorry I’m a rhel guy, not debian/ubuntu)

                sudo service firewalld stop

                I just found these instructions too for ubuntu 14.04
                sudo ufw disable

                Sorry for the run around but rhel and ubuntu is just a bit different.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                D 1 Reply Last reply Oct 10, 2016, 1:40 AM Reply Quote 0
                • D
                  DZKeeper @george1421
                  last edited by Oct 10, 2016, 1:40 AM

                  @george1421

                  Same thing for firewalld

                  as for ufw disable, I tried it, and rebooted, same problem.

                  G 1 Reply Last reply Oct 10, 2016, 1:54 AM Reply Quote 0
                  • G
                    george1421 Moderator @DZKeeper
                    last edited by Oct 10, 2016, 1:54 AM

                    @DZKeeper ok how about iptables -F. ??

                    I want those firewall rules to have the default policy of accept to continue testing. The forward chain manages data passing through the Linux router.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                    D 1 Reply Last reply Oct 10, 2016, 1:57 AM Reply Quote 0
                    • D
                      DZKeeper @george1421
                      last edited by Oct 10, 2016, 1:57 AM

                      @george1421

                      xxx@fog-gateway:~$ sudo iptables -F
                      xxx@fog-gateway:~$ sudo iptables -L

                      Chain INPUT (policy ACCEPT)
                      target prot opt source destination

                      Chain FORWARD (policy DROP)
                      target prot opt source destination

                      Chain OUTPUT (policy ACCEPT)
                      target prot opt source destination

                      Still no go.

                      G 1 Reply Last reply Oct 10, 2016, 2:07 AM Reply Quote 0
                      • G
                        george1421 Moderator @DZKeeper
                        last edited by Oct 10, 2016, 2:07 AM

                        @DZKeeper That forward policy is still DROP

                        Lets try this one: iptables -P FORWARD ACCEPT That should change the forward policy to Accept and pass all data through your FOG/linux/router.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                        D 1 Reply Last reply Oct 10, 2016, 2:13 AM Reply Quote 0
                        • D
                          DZKeeper @george1421
                          last edited by Oct 10, 2016, 2:13 AM

                          @george1421 Done, all 3 to ACCEPT now, however, dont work.

                          BTW, I appreciate your time.

                          G 1 Reply Last reply Oct 10, 2016, 2:26 AM Reply Quote 0
                          • G
                            george1421 Moderator @DZKeeper
                            last edited by george1421 Oct 9, 2016, 8:29 PM Oct 10, 2016, 2:26 AM

                            @DZKeeper OK now we can rule out forwarding (sorry about making this drawn out solving as thread discussions adds a certain amount of delay).

                            OK now that iptables is out of the way. From a computer on your LAB network, can you ping the business LAN interface (nic) of the FOG server from the lab network (this will test the on linux routing).

                            Also do the same from the business side, ping the LAB LAN network interface of your FOG server. I’ll assume from the business lan you can ping and get a response from the business LAN nic of your FOG server already.

                            Also from a computer on the LAB LAN computer, can you post here the output of ipconfig /all here? And also could you post the ip addresses of the FOG server both LAB LAN and business LAN?

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                            D 1 Reply Last reply Oct 10, 2016, 2:33 AM Reply Quote 0
                            • D
                              DZKeeper @george1421
                              last edited by Oct 10, 2016, 2:33 AM

                              @george1421

                              Ping No go from Lab -> business nic of FOG
                              Ping No go from Business -> lab nic of FOG

                              You assumed right.

                              FOG Server LAB IP: 192.168.22.99
                              Fog Server Business IP: 192.168.2.99

                              PRetty hard for me to post the result of ipconfig /all from lab

                              G 1 Reply Last reply Oct 10, 2016, 2:42 AM Reply Quote 0
                              • G
                                george1421 Moderator @DZKeeper
                                last edited by george1421 Oct 9, 2016, 8:44 PM Oct 10, 2016, 2:42 AM

                                @DZKeeper Well this is disappointing its still not working, it should be.

                                The reason why I wanted to see the ipconfig /all just to show that the default router for the LAB LAN is the LAB LAN nic interface of the FOG server.

                                Also from the business side I wanted to make sure there was a router to tell business computers about the computers beyond the FOG server. My intuition is telling me its a routing issue and not related directly to the FOG upgrade since FOG doesn’t mess with IP tables (actually one of the setup prerequisites is that you must disable the firewall all together as well as selinux).

                                If I had to listen to my intuition (assuming routing was working before you upgraded fog). I would almost suspect that the ip_forward setting was disabled. This command should return ( 1 ) enabled cat /proc/sys/net/ipv4/ip_forward

                                You can confirmed that the IP address of the FOG server hasn’t changed for either NIC adapters?

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                D 1 Reply Last reply Oct 10, 2016, 2:53 AM Reply Quote 0
                                • D
                                  DZKeeper @george1421
                                  last edited by Oct 10, 2016, 2:53 AM

                                  @george1421 Your last comment on “default router” made me change the option router settings in dhcpd.conf, which changed the default gateway in my lab client… boom, I can ping 8.8.8.8

                                  Something changed my option router setting back to 192.168.2.1 instead of 192.168.22.99

                                  G 1 Reply Last reply Oct 10, 2016, 2:57 AM Reply Quote 1
                                  • G
                                    george1421 Moderator @DZKeeper
                                    last edited by Oct 10, 2016, 2:57 AM

                                    @DZKeeper said in Routing and installation problem:

                                    Something changed my option router setting back to 192.168.2.1 instead of 192.168.22.99

                                    I can see/understand the fog installer “could” do this if you told FOG to configure the dhcp server for you. Running the installer would have (possibly) reset the routing options.

                                    Since we messed with iptables, (which only would impact in memory configuration). Please reboot your FOG server to restore IP tables and clear any dynamic changes that we made. Then test again to make sure everything is back to normal. Then you can call it resolved.

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                    D 1 Reply Last reply Oct 10, 2016, 3:08 AM Reply Quote 0
                                    • D
                                      DZKeeper @george1421
                                      last edited by Oct 10, 2016, 3:08 AM

                                      @george1421 How should I disable this option in FOG config file ?

                                      1 Reply Last reply Reply Quote 0
                                      • Wayne WorkmanW
                                        Wayne Workman
                                        last edited by Oct 10, 2016, 2:46 PM

                                        I’m confident the installer doesn’t touch iptables or firewalld. The plainrouter and router and other stuff in .fogsettings is only for configuring DHCP. I think that DHCP is messed up.

                                        If you modify /opt/fog/.fogsettings and change these fields:

                                        dodhcp='Y'
                                        bldhcp='1'
                                        

                                        To:

                                        dodhcp='N'
                                        bldhcp='0'
                                        

                                        Then the FOG installer will never again touch the DHCP configuration or DHCP service. Then you can configure /etc/dhcp/dhcpd.conf the way it needs to be for your setup. Feel free to post this file to get help with configuring it if you need.

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                        Daily Clean Installation Results:
                                        https://fogtesting.fogproject.us/
                                        FOG Reporting:
                                        https://fog-external-reporting-results.fogproject.us/

                                        1 Reply Last reply Reply Quote 1
                                        • 1 / 1
                                        1 / 1
                                        • First post
                                          7/19
                                          Last post

                                        158

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project