VMware Cloud Community
russjar
Enthusiast
Enthusiast
Jump to solution

esxcfg-firewall man page

Hi this should be an easy one for those out there...

I am trying to redirect the esxcfg-firewall man page to a text file so I can print it off as a reference for some work I need to do bit I'm not to sure how to do this (windows admin...) so if someone can tell me I would appreciate it.

Thanks...

VCP,MCSE NT4/W2k/W2k3, MCSA W2k3
Reply
0 Kudos
1 Solution

Accepted Solutions
dwight
Enthusiast
Enthusiast
Jump to solution

To dump a man page to a text file specify the cat command as the pager and redirect to a file.

man -P cat esxcfg-firewall > /tmp/esxcfg-firewall_man.txt

-


RHCE, VCP

Blog: http://computing.dwighthubbard.info

RHCE, VCP Blog: http://computing.dwighthubbard.info

View solution in original post

Reply
0 Kudos
3 Replies
rossb2b
Hot Shot
Hot Shot
Jump to solution

NAME

esxcfg-firewall - VMware ESX Server Firewall Configuration Tool

COPYRIGHT

VMware ESX Server is Copyright 2006 VMware, Inc. All rights reserved.

SYNOPSIS

esxcfg-firewall OPTIONS

DESCRIPTION

esxcfg-firewall provides an interface to query and modify the service

console firewall settings.

OPTIONS

-q --query

Displays the current firewall settings.

-q --query service name

Displays the state of the specified service.

-q --query incoming|outgoing

Displays the whether or not incoming/outgoing ports are blocked

by default.

-s --services

Lists the known firewall services.

-l --load

Load the current firewall settings.

-r --resetDefaults

Resets all firewall parameters to their default values.

--blockIncoming

Block all incoming connections on non-required ports. This is

the default.

--blockOutgoing

Block all outgoing connections on non-required ports. This is

the default.

--allowIncoming

Allow incoming connections on all ports.

--allowOutgoing

Allow outgoing connections on all ports.

--e --enableService service

Opens the ports in the firewall required by the specified ser-

vice.

--d --disableService service

Closes the ports in the firewall required by the specified ser-

vice.

-o --openPort -AR -port,tcp|udp,in|out,name

Opens a port in the firewall. Closes a port previously opened by

--openPort.

-h --help

Print a brief usage message.

EXAMPLES

esxcfg-firewall --query sshClient

esxcfg-firewall --openPort 873,tcp,in,"rsync"

esxcfg-firewall --enableService sshClient

VMware ESX Server 3.0 January 30, 2008 VMware ESX Server 3.0

Reply
0 Kudos
dwight
Enthusiast
Enthusiast
Jump to solution

To dump a man page to a text file specify the cat command as the pager and redirect to a file.

man -P cat esxcfg-firewall > /tmp/esxcfg-firewall_man.txt

-


RHCE, VCP

Blog: http://computing.dwighthubbard.info

RHCE, VCP Blog: http://computing.dwighthubbard.info
Reply
0 Kudos
russjar
Enthusiast
Enthusiast
Jump to solution

Cool thanks for your replys...

VCP,MCSE NT4/W2k/W2k3, MCSA W2k3
Reply
0 Kudos