PFSense Konsolen Netzwerkeinstellungen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Erstes Setup

  • Should VLANs be set up now [y|n]?n
  • Enter the WAN interface name or 'a' for auto-detection
(vtnet0 vtnet1 vtnet2 or a): vtnet0
  • Enter the LAN interface name or 'a' for auto-detection
NOTE: this enables full Firewalling/NAT mode.
(vtnet1 vtnet2 a or nothing if finished): vtnet1
  • Enter the Optional 1 interface name or 'a' for auto-detection
(vtnet2 a or nothing if finished): vtnet2
WAN  -> vtnet0
LAN  -> vtnet1
OPT1 -> vtnet2
  • Do you want to proceed [y|n]? y

Grundeinstellung

KVM Guest - Netgate Device ID: 2151ca91e52d2dc565fc

*** Welcome to pfSense 2.5.2-RELEASE (amd64) on pfSense ***

 WAN (wan)       -> vtnet0     -> v4/DHCP4: 194.59.156.217
 LAN (lan)       -> vtnet1     -> v4: 192.168.1.1/24
 OPT1 (opt1)     -> vtnet2     -> 

 0) Logout (SSH only)                  9) pfTop
 1) Assign Interfaces                 10) Filter Logs
 2) Set interface(s) IP address       11) Restart webConfigurator
 3) Reset webConfigurator password    12) PHP shell + pfSense tools
 4) Reset to factory defaults         13) Update from console
 5) Reboot system                     14) Enable Secure Shell (sshd)
 6) Halt system                       15) Restore recent configuration
 7) Ping host                         16) Restart PHP-FPM
 8) Shell
  • Enter an option:2
Available interfaces:

1 - WAN (vtnet0 - dhcp, dhcp6)
2 - LAN (vtnet1 - static)
3 - OPT1 (vtnet2)
  • Enter the number of the interface you wish to configure: 1
  • Configure IPv4 address WAN interface via DHCP? (y/n) n
  • Enter the new WAN IPv4 address. Press <ENTER> for none:
> 194.59.156.201
Subnet masks are entered as bit counts (as in CIDR notation) in pfSense.
e.g. 255.255.255.0 = 24
     255.255.0.0   = 16
     255.0.0.0     = 8
  • Enter the new WAN IPv4 subnet bit count (1 to 31):
> 27
  • For a WAN, enter the new WAN IPv4 upstream gateway address.
  • For a LAN, press <ENTER> for none:
> 194.59.156.193
  • Configure IPv6 address WAN interface via DHCP6? (y/n) n
  • Enter the new WAN IPv6 address. Press <ENTER> for none:
> 
Disabling IPv4 DHCPD...
Disabling IPv6 DHCPD...
  • Do you want to revert to HTTP as the webConfigurator protocol? (y/n) y
Please wait while the changes are saved to WAN...
 Reloading filter...
 Reloading routing configuration...
 DHCPD...
 Restarting webConfigurator... 

The IPv4 WAN address has been set to 194.59.156.201/27
Entsprechned für die anderen Netze

Resultat

KVM Guest - Netgate Device ID: 2151ca91e52d2dc565fc

*** Welcome to pfSense 2.5.2-RELEASE (amd64) on pfSense ***

 WAN (wan)       -> vtnet0     -> v4: 194.59.156.201/27
 LAN (lan)       -> vtnet1     -> v4: 192.168.151.1/24
 OPT1 (opt1)     -> vtnet2     -> v4: 192.168.101.1/24

 0) Logout (SSH only)                  9) pfTop
 1) Assign Interfaces                 10) Filter Logs
 2) Set interface(s) IP address       11) Restart webConfigurator
 3) Reset webConfigurator password    12) PHP shell + pfSense tools
 4) Reset to factory defaults         13) Update from console
 5) Reboot system                     14) Enable Secure Shell (sshd)
 6) Halt system                       15) Restore recent configuration
 7) Ping host                         16) Restart PHP-FPM
 8) Shell

Enter an option: