Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
FLOX Advocate
@FLOX_advocate@floss.social  ·  activity timestamp 2 weeks ago

looking for some nftables help

3 networks on firewall ( isp, ofc, svc ( Nextcloud, HomeAsst, etc ) )

I want to ssh and web from ofc to svc, I would prefer to route rather than nat ( show source system rather than firewall )

net.ipv4.ip_forward = 1

Should this be sufficient for the routing?

table inet filter {
chain forward {
ip saddr $ofc_net oifname $svc_nic accept
iifname $srv_nic ip daddr $ofc_net ct state related,established accept
}
}

#firewall #nftables #FediHelp

  • Copy link
  • Flag this post
  • Block
FLOX Advocate
@FLOX_advocate@floss.social replied  ·  activity timestamp 2 weeks ago

I have it working with nat, but trying to avoid that and am not yet certain what masquerade is doing

I have tried many combinations of specific IPs, /24 nets, and interface names

using log prefix w/o accept shows ssh from $ofc_ip to $svc_ip hitting forward, but not input nor output

I can ssh directly from firewall to $svc_ip

ssh from $ofc_ip doesn't connect to $svc_ip sshd

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login