Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
bastille-rdr(8) 	     System Manager's Manual		 bastille-rdr(8)

NAME
     bastille rdr -- Redirect host port to jail port.

SYNOPSIS
     bastille [-x] [-d IP] [-i INTERFACE] [-s IP|TABLE] [-t ipv4|ipv6] TARGET
	      tcp|udp HOST_PORT JAIL_PORT [log LOG_OPTIONS]
     bastille [-x] TARGET clear|reset|list

DESCRIPTION
     The bastille sub-command will redirect HOST_PORT to JAIL_PORT.

     bastille  rdr  [-x]  [-d  IP]  [-i  INTERFACE] [-s IP|TABLE] [-t ipv4|ipv6]
	     TARGET tcp|udp HOST_PORT JAIL_PORT [log LOG_OPTIONS]

	     tcp|udp
		     Specify protocol to use for the given rule.

	     -d IP, --destination IP
		     Limit rdr to a destination IP.

	     -i INTERFACE, --interface INTERFACE
		     Specify interface(s) to apply rule to. Comma-separated.

	     -s IP|TABLE, --source IP|TABLE
		     Limit rdr to a source IP or table.

		     The table should exist in your 'pf.conf'.

	     -t ipv4|ipv6, --type ipv4|ipv6
		     Specify IP type. Must be used if '-s' or '-d' are used. De-
		     faults to both.

	     -x, --debug
		     Enable debug mode.

     bastille rdr [-x] TARGET clear|reset|list

	     clear   Clear the rules from the system, but don't remove from  the
		     jail configuration.

	     reset   Clear  the  rules from the system, and remove from the jail
		     configuration.

	     list    List active rules.  INTERFACE from the jail.

	     -x, --debug
		     Enable debug mode.

EXAMPLES
     Forward port 80 from host to myjail:
	     bastille rdr myjail tcp 80 80

     Forward port 80 from host to myjail on vtnet0:
	     bastille rdr -i vtnet0 myjail tcp 80 80

     Forward port 80 from host to myjail, limiting to 200.200.200.200:
	     bastille rdr -s 200.200.200.200 myjail tcp 80 80

SEE ALSO
     bastille.conf(5),	 bastille-bootstrap(8),   bastille-clone(8),   bastille-
     cmd(8),   bastille-config(8),   bastille-console(8),   bastille-convert(8),
     bastille-cp(8), bastille-create(8), bastille-destroy(8),  bastille-edit(8),
     bastille-etcupdate(8),  bastille-export(8),  bastille-htop(8), bastille-im-
     port(8), bastille-jcp(8), bastille-limits(8),  bastille-list(8),  bastille-
     migrate(8),  bastille-monitor(8),	bastille-mount(8),  bastille-network(8),
     bastille-pkg(8), bastille-rcp(8), bastille-rename(8),  bastille-restart(8),
     bastille-service(8),    bastille-setup(8),   bastille-start(8),   bastille-
     stop(8),	bastille-sysrc(8),    bastille-tags(8),    bastille-template(8),
     bastille-top(8),	bastille-umount(8),   bastille-update(8),   bastille-up-
     grade(8), bastille-verify(8), bastille-zfs(8)

FreeBSD ports 15.quarterly	December 6, 2025		 bastille-rdr(8)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=bastille-rdr&sektion=8&manpath=FreeBSD+Ports+15.1.quarterly>

home | help