Score:0

What is the correct way to automatically configure promisc mode in Ubuntu 18.04? (Vagrant)

fr flag

To configure a VPN gateway in Ubuntu 16.04 (Vagrant) I used to use /etc/rc.local to enable promisc mode, but this is no longer an option in Ubuntu 18.04:

        /sbin/ifconfig {{ vpn_nic }} up
        /sbin/ifconfig {{ vpn_nic }} promisc

What would the correct way of doing this be in Ubuntu 18 now?

Further info: The vagrant configuration which I don't believe needs to change was set to:

            node.vm.provider "virtualbox" do |vb|
                vb.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 1000 ]
                # Promisc mode is needed for open vpn gateway to forward packets
                if machine[:promisc] == true
                    vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
                    vb.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"]

...and in /etc/sysctl.conf I enabled IP forwarding:

net.ipv4.ip_forward=1
fr flag
Cheers for pointing that out, I've updated the title.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.