The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



Индекс форумов
Составление сообщения

Исходное сообщение
"Не могу получить почту FreeBSD"
Отправлено Lema, 03-Фев-07 15:01 
Привожу конфиги 2 файлов

rc.conf

#!/bin/sh
#

# $FreeBSD: src/etc/defaults/rc.conf,v 1.176 2003/05/02 05:27:34 dougb Exp $

##############################################################
###  Important initial Boot-time options  ####################
##############################################################

local_startup="/usr/local/etc/rc.d" # startup script dirs.
rc_conf_files="/etc/rc.conf"

##############################################################
###  Network configuration sub-section  ######################
##############################################################

### Basic network and firewall/security options: ###
hostname=""    # Set this!
#dhcp_program="/sbin/dhclient"    # Path to dhcp client program.
#dhcp_flags=""            # Additional flags to pass to dhcp client.
firewall_enable="YES"        # Set to YES to enable firewall functionality
firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall
firewall_type="COMPANY"        # Firewall type (see /etc/rc.firewall)
#firewall_quiet="NO"        # Set to YES to suppress rule display
firewall_logging="YES"        # Set to YES to enable events logging
#firewall_flags=""        # Flags passed to ipfw when type is a file
natd_program="/sbin/natd"    # path to natd, if you want a different one.
natd_enable="YES"        # Enable natd (if firewall_enable == YES).
natd_interface="ng0"        # Public interface or IPaddress to use.
natd_flags="-f /etc/natd.conf"    # Additional flags for natd.

tcp_extensions="NO"        # Set to NO to turn off RFC1323 extensions.
# For the following option you need to have TCP_DROP_SYNFIN set in your
# kernel.  Please refer to LINT and NOTES for details.
tcp_drop_synfin="YES"        # Set to YES to drop TCP packets with SYN+FIN
                # NOTE: this violates the TCP specification
icmp_drop_redirect="YES"     # Set to YES to ignore ICMP REDIRECT packets
icmp_log_redirect="YES"        # Set to YES to log ICMP REDIRECT packets

ifconfig_lo0="inet 127.0.0.1"    # default loopback device configuration.
#ifconfig_rl0="inet 192.168.1.2 netmask 255.255.255.0"
ifconfig_rl0="DHCP"
ifconfig_rl1="inet 192.168.0.2 netmask 255.255.255.0"
#
inetd_enable="YES"        # Run the network daemon dispatcher (YES/NO).
named_enable="YES"        # Run DNS server
#
sshd_enable="YES"        # Enable sshd

### Network daemon (NFS): All need rpcbind_enable="YES" ###
amd_enable="NO"            # Run amd service with $amd_flags (or NO).
nfs_client_enable="NO"        # This host is an NFS client (or NO).
nfs_reserved_port_only="YES"    # Provide NFS only on secure port (or NO).

### Network Time Services options: ###
timed_enable="NO"        # Run the time daemon (or NO).
timed_flags=""            # Flags to timed (if enabled).
ntpdate_enable="NO"        # Run ntpdate to sync time on boot (or NO).
ntpdate_program="/usr/sbin/ntpdate"    # path to ntpdate, if you want a different one.
ntpdate_flags="-b"        # Flags to ntpdate (if enabled).
ntpd_enable="YES"        # Run ntpd Network Time Protocol (or NO).
ntpd_program="/usr/sbin/ntpd"    # path to ntpd, if you want a different one.
ntpd_flags="-p /var/run/ntpd.pid"    # Flags to ntpd (if enabled).

### Network routing options: ###
defaultrouter="NO"        # Set to default gateway (or NO).
#static_routes=""        # Set to static route list (or leave empty).
gateway_enable="YES"        # Set to YES if this host will be a gateway.
#router_enable="NO"        # Set to YES to enable a routing daemon.
#router="/sbin/routed"        # Name of routing daemon to use if enabled.
#router_flags="-q"        # Flags for routing daemon.

### IPv6 options: ###
ipv6_enable="NO"        # Set to YES to set up for IPv6.


##############################################################
###  Mail Transfer Agent (MTA) options  ######################
##############################################################

#mta_start_script="/etc/rc.sendmail"
            # Script to start your chosen MTA, called by /etc/rc.
# Settings for /etc/rc.sendmail:
sendmail_enable="NO"    # Run the sendmail inbound daemon (YES/NO).
#sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server)
#sendmail_submit_enable="YES"    # Start a localhost-only MTA for mail submission
#sendmail_submit_flags="-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost"
                # Flags for localhost-only MTA
#sendmail_outbound_enable="YES"    # Dequeue stuck mail (YES/NO).
#sendmail_outbound_flags="-L sm-queue -q30m" # Flags to sendmail (outbound only)
#sendmail_msp_queue_enable="YES"    # Dequeue stuck clientmqueue mail (YES/NO).
#sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m"
                # Flags for sendmail_msp_queue daemon.


##############################################################
###  Miscellaneous administrative options  ###################
##############################################################

cron_enable="YES"    # Run the periodic job daemon.
cron_program="/usr/sbin/cron"    # Which cron executable to run (if enabled).
cron_flags=""        # Which options to pass to the cron daemon.
#lpd_enable="NO"        # Run the line printer daemon.
#lpd_program="/usr/sbin/lpd"    # path to lpd, if you want a different one.
#lpd_flags=""        # Flags to lpd (if enabled).
usbd_enable="YES"    # Run the usbd daemon.
#usbd_flags=""        # Flags to usbd (if enabled).
#enable_quotas="NO"    # turn on quotas on startup (or NO).
check_quotas="NO"    # Check quotas on startup (or NO).
#accounting_enable="NO"    # Turn on process accounting (or NO).
linux_enable="YES"    # Linux binary compatibility loaded at startup (or NO).
kern_securelevel_enable="NO"    # kernel security level


rc.firewall

...
# Prototype setups.
#
case ${firewall_type} in
[Cc][Oo][Mm][Pp][Aa][Nn][Yy])

    # Outside interface
    oif="rl0"
    
    # PPPoE interface
    nif="ng0"

    # Our own interface and network and netmask and ip
    iif="rl1"
    inet="192.168.0.0"
    imask="255.255.255.0"
    iip="192.168.0.2"

    setup_loopback

    # Allow any traffic to or from my own net.
    ${fwcmd} add pass all from ${iip} to ${inet}:${imask}
    ${fwcmd} add pass all from ${inet}:${imask} to ${iip}
    
    ${fwcmd} add pass ICMP from any to any
    #${fwcmd} add deny ICMP from any to any frag
    
    ${fwcmd} add pass tcp from any to any 80
    ${fwcmd} add pass tcp from any 80 to any
    
    ${fwcmd} add pass udp from any to any 53
    ${fwcmd} add pass udp from any 53 to any
    
    ${fwcmd} add divert natd all from any to 80.77.80.130 via ${nif}
    ${fwcmd} add divert natd all from 80.77.80.130 to any via ${nif}
    
    ${fwcmd} add 65000 pass all from any to any
    ;;
...


После установки соединения:

rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::280:1eff:fe13:7b39%rl0 prefixlen 64 scopeid 0x1
    inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
    ether 00:80:1e:13:7b:39
    media: Ethernet autoselect (100baseTX <full-duplex>)
    status: active
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
    inet6 fe80::20e:2eff:fea9:6e10%rl1 prefixlen 64 scopeid 0x2
    ether 00:0e:2e:a9:6e:10
    media: Ethernet autoselect (100baseTX <full-duplex>)
    status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
    inet 127.0.0.1 netmask 0xff000000
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1492
    inet 91.124.31.100 --> 195.5.5.11 netmask 0xffffffff
    inet6 fe80::280:1eff:fe13:7b39%ng0 prefixlen 64 scopeid 0x5

Как я говорил выше Интернет есть, а почту не могу Bat'ом получить. Подскажите

 

Ваше сообщение
Имя*:
EMail:
Для отправки новых сообщений в текущей нити на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру