I'm running CentOS for some reason every time I run the script I lose my default gateway = I lose internet on my machine. even setting up my default gw manually wouldn't do the trick (it does not save, why? I don't know) so I commented the line " route del default #remove default route " on the script.
so it doesn't erase my default gateway. Everything works now, host has internet = pineapple has internet. :-)
PS: I also tried on a Kali VM and had the same problem. threads on the forum didn't help. so I wonder why I can't change the default gateway after running the script.
I'm running CentOS for some reason every time I run the script I lose my default gateway = I lose internet on my machine. even setting up my default gw manually wouldn't do the trick (it does not save, why? I don't know) so I commented the line " route del default #remove default route " on the script.
so it doesn't erase my default gateway. Everything works now, host has internet = pineapple has internet. :-)
PS: I also tried on a Kali VM and had the same problem. threads on the forum didn't help. so I wonder why I can't change the default gateway after running the script.