Skip to content

routeros: GRE ordering fix, src-nat example, logging cleanup - #33

Merged
gpas45 merged 1 commit into
mainfrom
claude/initial-setup-script-analysis-eno3r5
Jul 30, 2026
Merged

routeros: GRE ordering fix, src-nat example, logging cleanup#33
gpas45 merged 1 commit into
mainfrom
claude/initial-setup-script-analysis-eno3r5

Conversation

@gpas45

@gpas45 gpas45 commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up refinements to the RouterOS initial-setup scripts (initial-setup-ros6.rsc and initial-setup-ros7.rsc).

Changes

  • GRE rule moved to the top of the input chain, ahead of the drop invalid rule. GRE has no connection tracking, so its packets are marked invalid and would otherwise be dropped before reaching an accept rule. Removed GRE from the tunnel-protocol group (which now lists only L2TP / IPsec); the rule stays disabled=yes as an example, with a comment explaining the placement.
  • NAT: added a commented src-nat example next to the masquerade rule. On a static public address src-nat is preferred (it does not recompute the address per packet and does not drop connections on interface state changes). Uses 203.0.113.1 (documentation range) as a placeholder to replace.
  • Logging: default now suppresses only dhcp (topics=info,!dhcp). The wireless topic was moved to a commented example below — ROS7 uses !wifi (wifiwave2) or !wireless (legacy), ROS6 uses !wireless — with an explanation.

Applied consistently to both the ROS6 and ROS7 variants.

🤖 Generated with Claude Code


Generated by Claude Code

- Move the GRE accept rule to the top of the input chain, ahead of the
  drop-invalid rule (GRE has no conntrack, so its packets are marked invalid
  and would otherwise be dropped). Removed from the tunnel-protocol group.
- NAT: add a commented src-nat example (preferred over masquerade on a static
  public address) alongside the masquerade rule.
- Logging: suppress only dhcp by default; move the wireless/wifi topic to a
  commented example with an explanation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UXAWR3BJ7yjfpE7STGCtvT
@gpas45
gpas45 merged commit f29f2d1 into main Jul 30, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants