28: Configuring DHCP forwarding
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW1000 Series User Manual
Issue: 2.3
Page 288 of 463
Web Field/UCI/Package Option
Description
Web: Rule is enabled
UCI: firewall.@redirect[X].enabled
Opt: enabled
Defines whether source NAT rule is enabled.
0
Disabled
1
Enabled
Web: Name
UCI: firewall.@redirect[X].name
Opt: name
Defines a name for the source NAT rule.
Web: Protocol
UCI: firewall.@redirect[X].proto
Opt: proto
Defines the protocol for the souce NAT rule to match.
Select UDP.
Option
Description
UCI
All protocols
Match all protocols
all
TCP+UDP
Match TCP and UDP protocols
tcp upd
TCP
Match TCP protocol
tcp
UDP
Match UDP protocol
udp
ICMP
Match ICMP protocol
icmp
Custom
Enter custom protocol
Web: Source Zone
UCI: firewall.@redirect[X].src
Opt: src
Defines the source interface for the source NAT rule.
Select the interface where the DHCP requests are
originating.
Web: Destination Zone
UCI: firewall.@redirect[X].dest
Opt: dest
Defines destination interface for the source NAT rule.
Select the interface where the DHCP requests are intended
to be transmitted.
Web: Destination port
UCI: firewall.@redirect[X].port
Opt: port
Defines the destination port number to match.
Select 67.
Web: SNAT IP address
UCI: firewall.@redirect[X].src_dip
Opt: src_dip
Defines the IP address to rewrite matched traffic.
Select the source IP address to match the required IPSec
rule.
Table 95: Information table for the advanced source NAT configuration
28.4.3
Configuring source NAT for DHCP forwarding over IPSec using command
line
28.4.3.1
Source NAT for DHCP forwarding over IPSec using UCI
root@VA_router:~# uci show firewall
……
firewall.@redirect[0]=redirect
firewall.@redirect[0].target=SNAT
firewall.@redirect[0].src=lan
firewall.@redirect[0].dest=wan
firewall.@redirect[0].src_dip=192.168.100.1
firewall.@redirect[0].name=DHCPMessages
firewall.@redirect[0].proto=udp
firewall.@redirect[0].dest_port=67