Skip to content

Instantly share code, notes, and snippets.

View Horkyze's full-sized avatar
:shipit:

Matej Belluš Horkyze

:shipit:
  • Slovakia
View GitHub Profile
trace id 40da7f0c ip nat PREROUTING packet: iif "eth1" ether saddr 08:00:27:dc:0e:85 ether daddr 08:00:27:01:f2:36 ip saddr 192.168.1.251 ip daddr 172.30.0.11 ip dscp cs0 ip ecn not-ect ip ttl 64 ip id 19599 ip length 84 icmp type echo-request icmp code 0 icmp id 3023 icmp sequence 1 @th,64,96 6617515258756710002485887744
trace id 40da7f0c ip nat PREROUTING rule nftrace set 1 (verdict continue)
trace id 40da7f0c ip nat PREROUTING verdict continue
trace id 40da7f0c ip nat PREROUTING
trace id 40da7f0c ip filter FORWARD packet: iif "eth1" oif "br-45746c018e23" ether saddr 08:00:27:dc:0e:85 ether daddr 08:00:27:01:f2:36 ip saddr 192.168.1.251 ip daddr 172.30.0.11 ip dscp cs0 ip ecn not-ect ip ttl 63 ip id 19599 ip length 84 icmp type echo-request icmp code 0 icmp id 3023 icmp sequence 1 @th,64,96 6617515258756710002485887744
trace id 40da7f0c ip filter FORWARD rule counter packets 556 bytes 70053 jump DOCKER-USER (verdict jump DOCKER-USER)
trace id 40da7f0c ip filter DOCKER-USER verdict continue
trace id 40d
@Horkyze
Horkyze / ruleset
Last active November 29, 2019 19:07
table ip nat { # handle 2
chain PREROUTING { # handle 1
type nat hook prerouting priority -100; policy accept;
fib daddr type local counter packets 3557 bytes 214222 jump DOCKER # handle 8
}
chain INPUT { # handle 2
type nat hook input priority 100; policy accept;
}
chain POSTROUTING { # handle 3
type nat hook postrouting priority 100; policy accept;
#!/usr/bin/python
"""
Setting the position of Nodes (only for Stations and Access Points) and providing mobility.
"""
from mininet.net import Mininet
from mininet.node import Controller, RemoteController, OVSKernelAP, OVSSwitch
from mininet.link import TCLink
from mininet.wifiChannel import setChannelParams
from mininet.log import debug
import socket
class associationControl (object):
changeAP = False
def __init__(self, sta, ap, wlan, ac):
# self.customAssociationControl(sta, ap, wlan, ac)