I have an ubuntu server I use to wget certain files from the internet via a VPN. I have set the VPN up using PPP0 and currently adjust the route like this:
sudo route add default ppp0
Everything is working fine with the vpn connection, but now I would like to route FTP traffic via eth0 and not the VPN.
I tried
sudo route add default eth0
for the period I was using FTP but lost the internet connection until
ifdown eth0 ifup eth0
was called.
Clearly I am doing something wrong.
Ideal solution would be to always route all FTP via eth0 if that is easy, if not then what should I add to my bash script to route the traffic back to eth0 while the FTP upload completes (at which point I can go back to route add default ppp0).