Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util/linuxfw, wgengine/router: display iptables version #9248

Closed
wants to merge 1 commit into from
Closed

util/linuxfw, wgengine/router: display iptables version #9248

wants to merge 1 commit into from

Conversation

rodrigc
Copy link
Contributor

@rodrigc rodrigc commented Sep 6, 2023

Log the version of the iptables binary
to help better debug the logic in chooseFirewallMode() on different platforms.

Updates #391
Updates #9247

@rodrigc
Copy link
Contributor Author

rodrigc commented Sep 6, 2023

To test this:

  1. I created a Vagrantfile based off of: https://app.vagrantup.com/irisstream/boxes/fedora-coreos
Vagrant.configure("2") do |config|
  config.vm.box = "irisstream/fedora-coreos"
  config.vm.box_version = "37.20230218.3.0"
  config.vm.provider "virtualbox" do |v|
      v.gui = true
  end
  config.ssh.username = "core"
end
  1. vagrant up && vagrant ssh

  2. Install go 1.21 inside this VM

  3. Built this with:

GOOS=linux GOARCH=amd64 ./tool/go install tailscale.com/cmd/tailscale tailscale.com/cmd/tailscaled
  1. Ran:
export TS_DEBUG_FIREWALL_MODE=auto
./tailscaled
  1. In the logs, I saw:
wgengine.NewUserspaceEngine(tun "tailscale0") ...
router: detect iptables CLI version: iptables v1.8.9 (nf_tables)
router: detect iptables CLI version: ip6tables v1.8.9 (nf_tables)
router: nftables rule count: 0, iptables rule count: 0
router: nftables is available
router: using nftables
router: v6nat availability: true

Log the version of the iptables binary
to help better debug the logic in chooseFirewallMode()
on different platforms.

Updates #391
Updates #9247

Signed-off-by: Craig Rodrigues <rodrigc@crodrigues.org>
@rodrigc rodrigc closed this by deleting the head repository Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant