Skip to content

Request: Open FORWARD between the Systemcore's WiFi/USB subnets and eth0 #399

Description

@j0n5m1th

Desired Workflow:

  • Connect a laptop to the Systemcore WiFi and be able to interact with FRC Radio and attached coprocessors. (handy for in-shop use)
  • USB device (ex. USB-Ethernet adapter as tether for 1 more coprocessor on radio) connected to the Systemcore and be able to interact with the FRC Radio & attached coprocessors.

Blocker:

  • FORWARD policy is DROP with no rule between wlan0/usb+ and eth0 - nothing on the Systemcore's WiFi or USB ports can reach the robot network, only the Systemcore.

Request:

  • Open FORWARD between the Systemcore WiFi/USB subnets and eth0.

Tested:

iptables -N ROBOT-SEGMENT-FWD
iptables -A ROBOT-SEGMENT-FWD -i usb+ -o eth0 -j ACCEPT
iptables -A ROBOT-SEGMENT-FWD -i wlan0 -o eth0 -j ACCEPT
iptables -A ROBOT-SEGMENT-FWD -i eth0 -o usb+ -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A ROBOT-SEGMENT-FWD -i eth0 -o wlan0 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -I FORWARD -j ROBOT-SEGMENT-FWD

iptables -t nat -A POSTROUTING -o eth0 ! -s 172.17.0.0/16 -j MASQUERADE

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions