- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 83 for iptables (0.1 sec)
-
cni/pkg/iptables/iptables.go
delErrs = append(delErrs, cfg.ext.Run(iptablesconstants.IPTables, &iptVer, nil, cmd...)) } for _, cmd := range optionalDeleteCmds { err := cfg.ext.Run(iptablesconstants.IPTables, &iptVer, nil, cmd...) if err != nil { log.Debugf("ignoring error deleting optional iptables rule: %v", err) } } } return errors.Join(delErrs...) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 15 15:39:28 UTC 2024 - 23.3K bytes - Viewed (0) -
cni/pkg/plugin/plugin_dryrun_test.go
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Aug 27 16:44:45 UTC 2024 - 8.5K bytes - Viewed (0) -
cni/pkg/iptables/iptables_e2e_test.go
initialized.Do(func() { // Setup group namespace so iptables --gid-owner will work assert.NoError(t, userns.WriteGroupMap(map[uint32]uint32{userns.OriginalGID(): 0})) // Istio iptables expects to find a non-localhost IP in some interface assert.NoError(t, exec.Command("ip", "addr", "add", "240.240.240.240/32", "dev", "lo").Run()) // Put a new file we have permission to access over xtables.lock xtables := filepath.Join(t.TempDir(), "xtables.lock")
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 15 15:39:28 UTC 2024 - 2.9K bytes - Viewed (0) -
cni/pkg/plugin/sidecar_iptables_linux.go
"istio.io/istio/pkg/log" "istio.io/istio/tools/istio-iptables/pkg/cmd" "istio.io/istio/tools/istio-iptables/pkg/config" "istio.io/istio/tools/istio-iptables/pkg/dependencies" ) // getNs is a unit test override variable for interface create. var getNs = ns.GetNS // Program defines a method which programs iptables based on the parameters // provided in Redirect. func (ipt *iptables) Program(podName, netns string, rdrct *Redirect) error {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Jun 29 01:24:47 UTC 2024 - 2.6K bytes - Viewed (0) -
cni/pkg/nodeagent/fakes_test.go
AddLoopbackRoutesCnt atomic.Int32 DelLoopbackRoutesCnt atomic.Int32 } var _ iptables.NetlinkDependencies = &fakeIptablesDeps{} func (r *fakeIptablesDeps) AddInpodMarkIPRule(cfg *iptables.Config) error { r.AddInpodMarkIPRuleCnt.Add(1) return nil } func (r *fakeIptablesDeps) DelInpodMarkIPRule(cfg *iptables.Config) error { r.DelInpodMarkIPRuleCnt.Add(1) return nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 28 23:33:46 UTC 2024 - 3.9K bytes - Viewed (0) -
cni/README.md
- If so, calls `istio-iptables` with params to setup pod netns - If ambient, sets up the ambient logic. - `istio-iptables` - sets up iptables to redirect a list of ports to the port envoy will listen - shared code with istio-init container - it will generate an iptables-save config, based on annotations/labels and other settings, and apply it.
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jul 17 23:10:17 UTC 2024 - 10.5K bytes - Viewed (0) -
cni/pkg/nodeagent/net_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/intstr" "istio.io/istio/cni/pkg/iptables" istiolog "istio.io/istio/pkg/log" "istio.io/istio/pkg/test/util/assert" "istio.io/istio/tools/istio-iptables/pkg/dependencies" ) func setupLogging() { opts := istiolog.DefaultOptions() opts.SetDefaultOutputLevel(istiolog.OverrideScopeName, istiolog.DebugLevel)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jul 25 16:13:38 UTC 2024 - 10.7K bytes - Viewed (0) -
cni/pkg/nodeagent/net.go
"istio.io/api/annotation" "istio.io/istio/cni/pkg/iptables" "istio.io/istio/pkg/slices" dep "istio.io/istio/tools/istio-iptables/pkg/dependencies" ) // Adapts CNI to ztunnel server. decoupled from k8s for easier integration testing. type NetServer struct { ztunnelServer ZtunnelServer currentPodSnapshot *podNetnsCache podIptables *iptables.IptablesConfigurator podNs PodNetnsFinder
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Oct 21 16:48:55 UTC 2024 - 9.1K bytes - Viewed (0) -
cni/pkg/iptables/iptables_test.go
// See the License for the specific language governing permissions and // limitations under the License. package iptables import ( "net/netip" "path/filepath" "strings" "testing" "istio.io/istio/cni/pkg/scopes" testutil "istio.io/istio/pilot/test/util" dep "istio.io/istio/tools/istio-iptables/pkg/dependencies" ) func TestIptables(t *testing.T) { cases := []struct { name string
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 15 15:39:28 UTC 2024 - 4.1K bytes - Viewed (0) -
cni/pkg/nodeagent/server.go
if err != nil { return nil, fmt.Errorf("error initializing the ztunnel server: %w", err) } hostIptables, podIptables, err := iptables.NewIptablesConfigurator(cfg, realDependenciesHost(), realDependenciesInpod(), iptables.RealNlDeps()) if err != nil { return nil, fmt.Errorf("error configuring iptables: %w", err) } // Create hostprobe rules now, in the host netns hostIptables.DeleteHostRules()
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Sep 25 20:54:34 UTC 2024 - 13.4K bytes - Viewed (0)