summaryrefslogtreecommitdiff
path: root/smoketest/configs/nat-basic
blob: 52f369f3409c0dff45b9aafa9e482e0be2625dc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
interfaces {
    bonding bond10 {
        hash-policy "layer3+4"
        member {
            interface "eth2"
            interface "eth3"
        }
        mode "802.3ad"
        vif 50 {
            address "192.168.189.1/24"
        }
    }
    ethernet eth0 {
        disable
        offload {
            gro
            gso
            rps
            sg
            tso
        }
    }
    ethernet eth1 {
        offload {
            gro
            gso
            rps
            sg
            tso
        }
    }
    ethernet eth2 {
        offload {
            gro
            gso
            rps
            sg
            tso
        }
    }
    ethernet eth3 {
        offload {
            gro
            gso
            rps
            sg
            tso
        }
    }
    loopback lo {
    }
    pppoe pppoe7 {
        authentication {
            password "vyos"
            username "vyos"
        }
        dhcpv6-options {
            pd 0 {
                interface bond10.50 {
                    address "1"
                }
                length "56"
            }
        }
        ip {
            adjust-mss "1452"
        }
        ipv6 {
            address {
                autoconf
            }
            adjust-mss "1432"
        }
        mtu "1492"
        no-peer-dns
        source-interface "eth1"
    }
}
nat {
    destination {
        rule 1000 {
            destination {
                port "3389"
            }
            inbound-interface {
                name "pppoe7"
            }
            protocol "tcp"
            translation {
                address "192.168.189.5"
                port "3389"
            }
        }
        rule 10022 {
            destination {
                port "10022"
            }
            inbound-interface {
                name "pppoe7"
            }
            protocol "tcp"
            translation {
                address "192.168.189.2"
                port "22"
            }
        }
        rule 10300 {
            destination {
                port "10300"
            }
            inbound-interface {
                name "pppoe7"
            }
            protocol "udp"
            translation {
                address "192.168.189.2"
                port "10300"
            }
        }
    }
    source {
        rule 10 {
            outbound-interface {
                name "eth1"
            }
            source {
                address "192.168.189.0/24"
            }
            translation {
                address "masquerade"
                options {
                    port-mapping fully-random
                }
            }
        }
        rule 50 {
            outbound-interface {
                name "pppoe7"
            }
            protocol "udp"
            source {
                address "192.168.189.2"
                port "10300"
            }
            translation {
                address "masquerade"
                port "10300"
            }
        }
        rule 100 {
            outbound-interface {
                name "pppoe7"
            }
            source {
                address "192.168.189.0/24"
            }
            translation {
                address "masquerade"
            }
        }
    }
}
service {
    dhcp-server {
        shared-network-name LAN {
            subnet 192.168.189.0/24 {
                default-router "192.168.189.1"
                domain-name "vyos.net"
                lease "604800"
                name-server "1.1.1.1"
                name-server "9.9.9.9"
                range 0 {
                    start "192.168.189.20"
                    stop "192.168.189.254"
                }
            }
        }
    }
    lldp {
        interface all {
        }
        interface eth1 {
            disable
        }
    }
    ntp {
        allow-client {
            address "192.168.189.0/24"
        }
        listen-address "192.168.189.1"
        server time1.vyos.net {
        }
        server time2.vyos.net {
        }
    }
    router-advert {
        interface bond10.50 {
            prefix ::/64 {
                preferred-lifetime "2700"
                valid-lifetime "5400"
            }
        }
    }
    ssh {
        disable-host-validation
        dynamic-protection {
        }
    }
}
system {
    config-management {
        commit-revisions "100"
    }
    conntrack {
        modules {
            ftp
            h323
            nfs
            pptp
            sip
            sqlnet
            tftp
        }
    }
    console {
        device ttyS0 {
            speed "115200"
        }
    }
    domain-name "vyos.net"
    host-name "R1"
    login {
        user vyos {
            authentication {
                encrypted-password $6$2Ta6TWHd/U$NmrX0x9kexCimeOcYK1MfhMpITF9ELxHcaBU/znBq.X2ukQOj61fVI2UYP/xBzP4QtiTcdkgs7WOQMHWsRymO/
                plaintext-password ""
            }
        }
    }
    name-server "1.1.1.1"
    name-server "9.9.9.9"
    syslog {
        global {
            facility all {
                level "info"
            }
            facility local7 {
                level "debug"
            }
        }
    }
}

// Warning: Do not remove the following line.
// vyos-config-version: "bgp@5:broadcast-relay@1:cluster@2:config-management@1:conntrack@5:conntrack-sync@2:container@2:dhcp-relay@2:dhcp-server@8:dhcpv6-server@1:dns-dynamic@4:dns-forwarding@4:firewall@15:flow-accounting@1:https@6:ids@1:interfaces@32:ipoe-server@3:ipsec@13:isis@3:l2tp@9:lldp@2:mdns@1:monitoring@1:nat@7:nat66@3:ntp@3:openconnect@3:ospf@2:pim@1:policy@8:pppoe-server@10:pptp@5:qos@2:quagga@11:rip@1:rpki@2:salt@1:snmp@3:ssh@2:sstp@6:system@27:vrf@3:vrrp@4:vyos-accel-ppp@2:wanloadbalance@3:webproxy@2"
// Release version: 1.4.0-epa3