Lines Matching refs:nat
10 * Simple RCMD transparent proxy for in-kernel use. For use with the NAT
70 ipf_p_rcmd_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
86 ipn = ipf_proxy_rule_rev(nat);
133 ipf_p_rcmd_portmsg(fr_info_t *fin, ap_session_t *aps, nat_t *nat)
199 * Initialise the packet info structure so we can search the NAT
207 fi.fin_src6 = nat->nat_ndst6;
208 fi.fin_dst6 = nat->nat_nsrc6;
210 if (nat->nat_v[0] == 6) {
212 if (nat->nat_dir == NAT_OUTBOUND) {
214 nat->nat_pr[1],
215 &nat->nat_osrc6.in6,
216 &nat->nat_odst6.in6);
219 nat->nat_pr[0],
220 &nat->nat_osrc6.in6,
221 &nat->nat_odst6.in6);
227 if (nat->nat_dir == NAT_OUTBOUND) {
229 nat->nat_pr[1],
230 nat->nat_osrcip,
231 nat->nat_odstip);
234 nat->nat_pr[0],
235 nat->nat_osrcip,
236 nat->nat_odstip);
243 * Add skeleton NAT entry for connection which will come
247 if (nat->nat_v[0] == 6) {
272 if (nat->nat_dir == NAT_OUTBOUND) {
299 fi.fin_dst6 = nat->nat_osrc6;
302 if (nat->nat_v[0] == 6) {
316 ipf_p_rcmd_out(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
318 if (nat->nat_dir == NAT_OUTBOUND)
319 return ipf_p_rcmd_portmsg(fin, aps, nat);
325 ipf_p_rcmd_in(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
327 if (nat->nat_dir == NAT_INBOUND)
328 return ipf_p_rcmd_portmsg(fin, aps, nat);