Is it possible to bind an arbitrary port, say 1337, to a specific NIC? I have 2 NICs, one configured for IPv4, the other for IPv6. I want to ensure that whenever port 1337 is used, it goes through the IPv6 interface.
Is it possible to bind an arbitrary port, say 1337, to a specific NIC? I have 2 NICs, one configured for IPv4, the other for IPv6. I want to ensure that whenever port 1337 is used, it goes through the IPv6 interface.
I think that you can do that using iptables. A rule in IP table should do it, but I think that the NIC in question has to have a IP assigned to it. Try this, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
Replace xxxx with the port number. For more info on iptables see the Manpage
You usually bind a service (that uses a certain port) to an address. So when you bind your service to the IPv6 address you should be set.