You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.9 KiB

  1. --- a/pkg/firewall/config.go
  2. +++ b/pkg/firewall/config.go
  3. @@ -31,7 +31,7 @@ func parseConfigFromBytes(data []byte) (
  4. // Default the filter table name to filter
  5. if conf.FilterTableName == "" {
  6. - conf.FilterTableName = "filter"
  7. + conf.FilterTableName = "fw4"
  8. }
  9. // Default the forwarding chain name to forward
  10. @@ -41,12 +41,12 @@ func parseConfigFromBytes(data []byte) (
  11. // Default the nat table name to nat
  12. if conf.NatTableName == "" {
  13. - conf.NatTableName = "nat"
  14. + conf.NatTableName = "fw4"
  15. }
  16. // Default the postrouting chain name to postrouting
  17. if conf.PostRoutingNatChainName == "" {
  18. - conf.PostRoutingNatChainName = "postrouting"
  19. + conf.PostRoutingNatChainName = "srcnat"
  20. }
  21. // Parse previous result.
  22. --- a/pkg/portmap/config.go
  23. +++ b/pkg/portmap/config.go
  24. @@ -56,16 +56,16 @@ func parseConfigFromBytes(data []byte, i
  25. // Set default values
  26. if conf.NatTableName == "" {
  27. - conf.NatTableName = "nat"
  28. + conf.NatTableName = "fw4"
  29. }
  30. if conf.RawTableName == "" {
  31. - conf.RawTableName = "raw"
  32. + conf.RawTableName = "fw4"
  33. }
  34. if conf.PostRoutingNatChainName == "" {
  35. - conf.PostRoutingNatChainName = "postrouting"
  36. + conf.PostRoutingNatChainName = "srcnat"
  37. }
  38. if conf.PreRoutingNatChainName == "" {
  39. - conf.PreRoutingNatChainName = "prerouting"
  40. + conf.PreRoutingNatChainName = "dstnat"
  41. }
  42. if conf.OutputNatChainName == "" {
  43. conf.OutputNatChainName = "output"
  44. @@ -76,14 +76,14 @@ func parseConfigFromBytes(data []byte, i
  45. }
  46. if conf.RawTableName == "" {
  47. - conf.RawTableName = "raw"
  48. + conf.RawTableName = "fw4"
  49. }
  50. if conf.PreRoutingRawChainName == "" {
  51. - conf.PreRoutingRawChainName = "prerouting"
  52. + conf.PreRoutingRawChainName = "dstnat"
  53. }
  54. if conf.FilterTableName == "" {
  55. - conf.FilterTableName = "filter"
  56. + conf.FilterTableName = "fw4"
  57. }
  58. if conf.ForwardFilterChainName == "" {
  59. conf.ForwardFilterChainName = "forward"