Can´t access a box remotely

Mauricio Brunstein mbrunstein at gmail.com
Wed Jan 19 13:11:23 PST 2005


Hi to all!

I can´t access to a box from the internet, using ssh. Also the box is
configured as a gateway, and I can´t access the redirected ports of
the computers in the internal network. Plase help! I don´t have any
idea of how to resolve this problem!!!!

Than you in advance, 

Mauricio.


PD: Some additional data of interest:

server:~ $ uname -a
FreeBSD server.estudio 5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #1: Tue
Nov 23 02:13:24 ART 2004    
root at server.estudio:/usr/obj/usr/src/sys/GENERICconALTQ  i386
server:~ $

server:~ $ sudo cat /etc/ppp/ppp.conf
default:
 set log Phase Chat IPCP CCP tun command
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255

my_isp:
 set device PPPoE:fxp0 # replace fxp0 with your Ethernet device
 set mtu 1492
 set mru 1492
 enable mssfixup
 set ctsrts off
 set speed sync
 disable acfcomp protocomp
 deny acfcomp
 set authname xxxxxxxxx
 set authkey yyyyyyyyyy
 add default HISADDR
# enable lqr
 disable ipv6cp
# set lqrperiod 5
 enable dns
server:~ $

server:~ $ sudo cat /etc/rc.conf

# -- sysinstall generated deltas -- # Sun Nov 21 13:07:41 2004
# Created: Sun Nov 21 13:07:41 2004
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="server.estudio"
netd_enable="YES"
saver="dragon"
scrnmap="NO"
sshd_enable="YES"
sshd_flags="-4 -p 222"
usbd_enable="YES"
network_interfaces="lo0 rl0 fxp0 tun0"
ifconfig_tun0=" "
ifconfig_rl0="inet 192.168.2.1  netmask 255.255.255.0"
ifconfig_fxp0="media 10baseT/UTP up"

ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"
ppp_profile="my_isp"

router_enable="YES"
gateway_enable="YES"          # Set to YES if this host will be a gateway
pf_enable="YES" # Enable PF (load module if required)
pf_rules="/etc/pf.conf"         # rules definition file for pf
pf_flags="-d"                     # additional flags for pfctl startup
#pflog_enable="YES"              # start pflogd(8)
#pflog_logfile="/var/log/pflog"  # where pflogd should store the logfile
#pflog_flags=""                  # additional flags for pflogd startup

inetd_enable="YES"               # Run the network daemon dispatcher (YES/NO).
inetd_program="/usr/sbin/inetd" # path to inetd, if you want a different one.
inetd_flags="-wW -C 60"         # Optional flags to inetd

#nmbd_enable="YES"
#smbd_enable="YES"
#winbindd_enable="YES"


#
# named.  It may be possible to run named in a sandbox, man security for
# details.
#
named_enable="YES"               # Run named, the DNS server (or NO).
named_program="/usr/sbin/named" # path to named, if you want a different one.
named_flags="-u bind"           # Flags for named
named_pidfile="/var/run/named/pid" # Must set this in named.conf as well
named_chrootdir="/var/named"    # Chroot directory (or "" not to auto-chroot it)
named_chroot_autoupdate="YES"   # Automatically install/update chrooted
                                # components of named. See /etc/rc.d/named.
named_symlink_enable="YES"      # Symlink the chrooted pid file
server:~ $

server:~ $ netstat -an|grep LISTEN
tcp4       0      0  *.8021                 *.*                    LISTEN
tcp4       0      0  *.901                  *.*                    LISTEN
tcp4       0      0  *.22                   *.*                    LISTEN
tcp4       0      0  *.21                   *.*                    LISTEN
tcp4       0      0  127.0.0.1.25           *.*                    LISTEN
tcp4       0      0  *.222                  *.*                    LISTEN
tcp6       0      0  ::1.953                *.*                    LISTEN
tcp4       0      0  127.0.0.1.953          *.*                    LISTEN
tcp4       0      0  127.0.0.1.53           *.*                    LISTEN
tcp4       0      0  192.168.2.1.53         *.*                    LISTEN
server:~ $


More information about the freebsd-questions mailing list