Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Enable WAN from pfSense shell

    Scheduled Pinned Locked Moved Firewalling
    1 Posts 1 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rukna
      last edited by

      My first post here, so please take it easy :)

      I'm trying to install pfsense on a dedicated but remotely sitting IBM x335. I've gone as far as installing pfsense on the HDD using the LiveCD, using a remote KVM. Now, what I want to do is to access the Web GUI from outside / WAN interface. Question is that since I only have access to the system's console, how do I enable the WAN interface and enable HTTP (and even SSHD) on it?

      I've read the docs and tried the following without much luck:

      
      pfSense shell: print_r($config);
      pfSense shell: print_r($config['interfaces']);
      
      pfSense shell: $config['interfaces']['wan']['disabled'] = false;
      pfSense shell: $config['interfaces']['wan']['ipaddr'] = "192.168.100.1";
      pfSense shell: $config['interfaces']['wan']['subnet'] = "24";
      pfSense shell: write_config();
      pfSense shell: system_reboot_sync();
      
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.