nat

  1. goshanecr

    Solved Subnet on ExtIF and ipfw nat not working

    Good day! Please, help me understand, how setup FreeBSD 11-STABLE amd64 router with several ip addresses on external interface. I have: Provider give me subnet 1.1.1.2/24 gw 1.1.1.1 /etc/rc.conf # Assigned external IP addresses ifconfig_rl0="inet 1.1.1.2/24" ifconfig_rl0_alias0="inet...
  2. D

    IPFW Is DNS hijacking possible on FreeBSD + IPFW?

    Hi All! I need to redirect all dns queries to local dns server (unbound) on router with FreeBSD 11 amd + ipfw nat. re0 - intranet [192.168.0.1] alias on re0 for unbound [10.0.0.1] re1 - internet [a.b.c.d] I try in various ways: ${FW} fwd 10.0.0.1,53 all from 192.168.0.0/24 to not 10.0.0.1 53...
  3. seanc@

    Solved FreeBSD 11 NAT hanging under VMware Fusion...

    This is a PSA to save future travelers some angst. Specifically, TCP connections would stall randomly after transferring a modest amount of data (i.e. >5MB xfer per TCP stream). As mentioned in my Discussion post to the VMware Fusion Forums, after much consternation, hand-wringing, and...
  4. unknownuser

    Host unable to load web pages from Jail - 408

    Hello everyone. I have a Windows 10 Workstation where I run a FreeBSD 10.3 Guest server over VMWare 12. This FreeBSD VM is meant to run multiple Apache/PHP/Wordpress instances on multiple jails. The FreeBSD guest is bridged through the HOST Ethernet NIC, where the HOST has the IP...
  5. barrandrea

    PF Redirect all traffic from ip to another

    Hi, i need to redirect all traffic from a private ip address attested on a local interface, to a public ip address. The old configuration with iptables it's something like this iptables:-A PREROUTING -d $private_ip/32 -i $int_if -j DNAT --to-destination $public_ip iptables:-A PREROUTING ! -d...
  6. B

    PF Is it possible to overcome "Strict-NAT" for 2 simultaneous devices behind PF?

    The below rules allow a single PC on my network to enjoy an "Open" NAT in Rainbow Six Siege multi-player (and many other games). This makes it possible for me to host games and improves match making speed. match out log on egress from !$gaming_pc to any nat-to ($ext_if:0) port...
  7. B

    IPFW ipfw nat stateful redirect of a port

    Hello everyone! I have few network services running in jailed configuration on a server, and I use ipfw to protect the server against possible attacks, and to provide its local clients with access to internet. The goal I want to achieve is redirection of some ports of jailed services to the...
  8. M

    PF NAT failing for large payload pings

    I have noticed an odd problem with NAT in pf and was wondering if this should behave the way it is. The router host is running pf doing NAT and a PPPoE connection to the internet using /usr/sbin/ppp (a.k.a. user-ppp). The ppp session is not doing any NATing. An extract of my pf.conf is as...
  9. dave

    PF pf: NAT Multiple Internal (LAN) Interfaces

    Hello, I cannot seem to find information on how to perform NAT for multiple internal (LAN) interfaces with pf. I have a very simple set of rules for performing basic NAT: # Definitions ext_if = "wlan0" # macro for external interface - use tun0 for PPPoE int_if = "ue0" #...
  10. T

    Networking Structure for VM Host

    Hello, I'm currently running a server based on FreeBSD 10.3. I'm using jails to separate all the running services. Since I only have one public IPv4 address, I use PF and a nginx-proxy to redirect to the specific jails inside the NAT. My plan is to use 11.0 and it's enhanced bhyve features to...
  11. I

    Solved NAT with forwarding is not working

    Hi guys! I've been a couple of days trying to set up a router in a virtual network using FreeBSD and I can't get it work I'm afraid. A quick summary of what I have and what I want to achieve: I have 2 interfaces: xn0, which is the external interface, and bridge0 which is internal. The...
  12. hsw

    IPFW NAT failing with nginx+ssl

    I set up a digital Ocean droplet with 10.3-zfs, installed iocage and copied in an working 10.3 jail that has nginx already setup. The jails IP is assigned to tap0 and I am trying to use IPFW+NAT to create a stateful firewall to allow the jail limited external access. With SSL off there is no...
  13. ikanobori

    IPFW IPFW/NAT and Jails having many out-of-order and reassembled TCP packets

    Hi, Traffic coming out of my jails seems to be very slow so I ran a tcpdump on my external interface to see what is going on and I get a whole slew of TCP Out of Order and TCP Duplicate ACK in Wireshark. I am talking pages full when any traffic is going out of the jails. Traffic going into the...
  14. scrappywan

    FreeBSD VPS Jailed Web Servers Network Isolation

    I have a VPS on Digitalocean which I used mfsbsd to reinstall FreeBSD with ZFS/zroot with PF as my firewall. My plan with this VPS is to run wordpress, a static site and owncloud each in their own jails. Currently, I use nginx on the host machine running as a reverse proxy, intercepting https...
  15. olav

    IPFW Is my IPFW NAT setup ok?

    Hello everyone, over this weekend I spent some time by replacing my PFSense firewall with a FreeBSD IPFW one. Mostly because I wanted the flexibility that comes with FreeBSD and that I can install all kind of third party software on the same machine as it has plenty of available resources...
  16. fnoyanisi

    Solved Cannot get bhyve guest network working

    Hi there, I have a VM running FreeBSD-CURRENT in bhyve but I could not get the network working properly. I created tap0 and bridge0 interfaces as described in the relevant chapter of the handbook. I have only a wireless NIC, so I followed the advice in bhyve wiki page and created proper pf...
  17. unknownuser

    Solved FreeBSD VM guest's jail can't be resolved from host

    Hello everyone. I will try to explain my setup as clear as I can. I have a Windows 10 Workstation where I run a FreeBSD VM on VMWare 12. This FreeBSD VM is meant to run multiple Apache/PHP/Wordpress instances on multiple jails. The FreeBSD guest is bridged through the HOST Ethernet NIC, where...
  18. M

    IPFW PF & IPFW: packet passing order

    Hi, I want to setup PF for round-robin NAT and ipfw for traffic shaping and filtering, but I can't find an appropriate description of a packet trip through firewalls in FreeBSD. So if I'll specify in rc.conf: firewall_enable="YES" dummynet_enable="YES" pf_enable="YES" will it mean that packet...
  19. D

    Virtualbox NAT and host network separation

    Dear FreeBSD users, I am running FreeBSD 10.1-RELEASE as a host for emulators/virtualbox and created a guest with Kali Linux for security testing purpose. The guest has networking configured with default Virtualbox NAT (IP: 10.0.2.15 GW:10.0.2.2) My host local network IP is 192.168.0.10 and my...
  20. O

    IPFW Forward all traffic arriving on a specific IP through VPN

    Hi, I have the following setup: - Server with 1 interface having 5 IPs assigned, running OpenVPN-Server - Client with 1 interface behind a router, running OpenVPN-Client The OpenVPN-Connection works fine. I now want to route all traffic arriving on one of the 5 IPs of the server through the...
Back
Top