Project

General

Profile

Actions

Bug #140

closed

Switching to AON should generate proper full NAT rules

Added by Chris Buechler over 15 years ago. Updated over 15 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Ermal Luçi
Category:
-
Target version:
-
Start date:
11/08/2009
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:

Description

Switching to AON only adds an outbound NAT rule for the LAN subnet, for outbound traffic to WAN.

It should add the same outbound NAT rules that are automatically created - NATing every internal subnet to the interface IP for every WAN connection.

Actions #1

Updated by Seth Mos over 15 years ago

  • Assignee set to Seth Mos

I'll look at this, I made the existing nat code in 1.2 iirc.

I just tested this with multi wan on 2.0 from a 18-11-2009 snapshot.

I have rules for both WAN connections and all known internal subnets. Both the static routes, and the directly connected networks.

tonatsubnets = "{ 192.168.10.0/24 192.168.11.0/24 192.168.2.0/24 }"
no nat on $WAN to port tftp
nat on $WAN from $tonatsubnets port 500 to any port 500 -> 213.73.159.94/32 port 500
nat on $WAN from $tonatsubnets port 5060 to any port 5060 -> 213.73.159.94/32 port 5060
nat on $WAN from $tonatsubnets to any -> 213.73.159.94/32 port 1024:65535
no nat on $WLANC to port tftp
nat on $WLANC from $tonatsubnets port 500 to any port 500 -> 192.168.1.117/32 port 500
nat on $WLANC from $tonatsubnets port 5060 to any port 5060 -> 192.168.1.117/32 port 5060
nat on $WLANC from $tonatsubnets to any -> 192.168.1.117/32 port 1024:65535

Actions #2

Updated by Seth Mos over 15 years ago

  • Status changed from New to Feedback
Actions #3

Updated by Ermal Luçi over 15 years ago

  • Status changed from Feedback to Resolved

Patches commited.

Actions #4

Updated by Ermal Luçi over 15 years ago

  • Assignee changed from Seth Mos to Ermal Luçi
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF