Hi Fabrice
Here is my iptables.conf attached as txt file. My current domain.conf is blank
fyi info . Also this is the ip route on my packetfence server
#Ip route
default via 10.1.8.1 dev eth0
10.1.8.0/24 dev eth0 proto kernel scope link src 10.1.8.220
Thank You Once Again.
ICT Team.
From: Durand fabrice via PacketFence-users
[mailto:[email protected]]
Sent: Tuesday, 14 August 2018 2:55 p.m.
To: [email protected]
Cc: Durand fabrice
Subject: Re: [PacketFence-users] Domain
Ok so i need var/conf/iptables.conf , domains.conf and the result of: ip route
get @ip_of_ad
Regards
Fabrice
Le 2018-08-13 à 21:22, Maile Halatuituia via PacketFence-users a écrit :
I am having issue trying to add my packet fence Server to our Domain.
FYI
PF server runs Debian Jessie . Domain Controller is Win 8 Server Version
Thank You Once Again.
ICT Team.
Confidentiality Notice: This email (including any attachment) is intended for
internal use only. Any unauthorized use, dissemination or copying of the
content is prohibited. If you are not the intended recipient and have received
this e-mail in error, please notify the sender by email and delete this email
and any attachment.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/packetfence-users
Confidentiality Notice: This email (including any attachment) is intended for
internal use only. Any unauthorized use, dissemination or copying of the
content is prohibited. If you are not the intended recipient and have received
this e-mail in error, please notify the sender by email and delete this email
and any attachment.
Confidentiality Notice: This email (including any attachment) is intended for
internal use only. Any unauthorized use, dissemination or copying of the
content is prohibited. If you are not the intended recipient and have received
this e-mail in error, please notify the sender by email and delete this email
and any attachment.
# This file is generated from a template at /usr/local/pf/conf/iptables.conf
# Any changes made to this file will be lost on restart
# iptables template
# This file is manipulated on PacketFence's startup before being given to
iptables
*filter
### INPUT ###
:INPUT DROP [0:0]
# accept loopback stuff
-A INPUT --in-interface lo --jump ACCEPT
# accept anything related
-A INPUT --match state --state ESTABLISHED,RELATED --jump ACCEPT
# Accept Ping (easier troubleshooting)
-A INPUT --protocol icmp --icmp-type echo-request --jump ACCEPT
:input-management-if - [0:0]
# SSH
-A input-management-if --match state --state NEW --match tcp --protocol tcp
--dport 22 --jump ACCEPT
# HTTP and HTTPS for the portal
-A input-management-if --protocol tcp --match tcp --dport 80 --jump ACCEPT
-A input-management-if --protocol tcp --match tcp --dport 443 --jump ACCEPT
# Web Admin
-A input-management-if --protocol tcp --match tcp --dport 1443 --jump ACCEPT
# Webservices
-A input-management-if --protocol tcp --match tcp --dport 9090 --jump ACCEPT
# AAA
-A input-management-if --protocol tcp --match tcp --dport 7070 --jump ACCEPT
# Unified API
-A input-management-if --protocol tcp --match tcp --dport 9999 --jump ACCEPT
# httpd.portal modstatus
-A input-management-if --protocol tcp --match tcp --dport 1444 --jump ACCEPT
# httpd.collector
-A input-management-if --protocol tcp --match tcp --dport 9292 --jump ACCEPT
# haproxy stats (uncomment if activating the haproxy dashboard) - 1025 for
haproxy-portal, 1026 for haproxy-db
#-A input-management-if --protocol tcp --match tcp --dport 1025 --jump ACCEPT
#-A input-management-if --protocol tcp --match tcp --dport 1026 --jump ACCEPT
# Netdata
-A input-management-if --protocol tcp --match tcp --dport 19999 --jump ACCEPT
# RADIUS
-A input-management-if --protocol tcp --match tcp --dport 1812 --jump ACCEPT
-A input-management-if --protocol udp --match udp --dport 1812 --jump ACCEPT
-A input-management-if --protocol tcp --match tcp --dport 1813 --jump ACCEPT
-A input-management-if --protocol udp --match udp --dport 1813 --jump ACCEPT
-A input-management-if --protocol tcp --match tcp --dport 1815 --jump ACCEPT
-A input-management-if --protocol udp --match udp --dport 1815 --jump ACCEPT
-A input-management-if --protocol tcp --match tcp --dport 2083 --jump ACCEPT
# RADIUS (eduroam virtual-server)
# eduroam integration is not configured
# SNMP Traps
-A input-management-if --protocol udp --match udp --dport 162 --jump ACCEPT
# DHCP (for IP Helpers to mgmt to track users' IP in production VLANs)
-A input-management-if --protocol udp --match udp --dport 67 --jump ACCEPT
-A input-management-if --protocol tcp --match tcp --dport 67 --jump ACCEPT
# OpenVAS Administration Interface
-A input-management-if --protocol tcp --match tcp --dport 9392 --jump ACCEPT
# Nessus Administration Interface
-A input-management-if --protocol tcp --match tcp --dport 8834 --jump ACCEPT
# PacketFence-PKI
# -A input-management-if --protocol tcp --match tcp --dport 9393 --jump ACCEPT
# -A input-management-if --protocol tcp --match tcp --dport 9292 --jump ACCEPT
# Fingerbank collector (replication + API)
-A input-management-if --protocol udp --match udp --dport 1192 --jump ACCEPT
-A input-management-if --protocol tcp --match tcp --dport 4723 --jump ACCEPT
# VRRP
-A input-management-if -d 224.0.0.0/8 -j ACCEPT
-A input-management-if -p vrrp -j ACCEPT
# Mysql
-A input-management-if --protocol tcp --match tcp --dport 3306 --jump ACCEPT
# Syslog
-A input-management-if --protocol udp --match udp --dport 514 --jump ACCEPT
# ETCD
-A input-management-if --protocol tcp --match tcp --dport 2380 --jump ACCEPT
-A input-management-if --protocol tcp --match tcp --dport 2379 --jump ACCEPT
# GO DHCP API
-A input-management-if --protocol tcp --match tcp --dport 22222 --jump ACCEPT
:input-portal-if - [0:0]
-A input-portal-if --protocol tcp --match tcp --dport 80 --jump ACCEPT
-A input-portal-if --protocol tcp --match tcp --dport 443 --jump ACCEPT
:input-radius-if - [0:0]
-A input-radius-if --protocol tcp --match tcp --dport 1812 --jump ACCEPT
-A input-radius-if --protocol udp --match udp --dport 1812 --jump ACCEPT
-A input-radius-if --protocol tcp --match tcp --dport 1813 --jump ACCEPT
-A input-radius-if --protocol udp --match udp --dport 1813 --jump ACCEPT
-A input-radius-if --protocol tcp --match tcp --dport 1815 --jump ACCEPT
-A input-radius-if --protocol udp --match udp --dport 1815 --jump ACCEPT
-A input-radius-if --protocol tcp --match tcp --dport 2083 --jump ACCEPT
# eduroam integration is not configured
:input-internal-vlan-if - [0:0]
# DNS
-A input-internal-vlan-if --protocol tcp --match tcp --dport 53 --jump ACCEPT
-A input-internal-vlan-if --protocol udp --match udp --dport 53 --jump ACCEPT
# HTTP (captive-portal)
-A input-internal-vlan-if --protocol tcp --match tcp --dport 80 --jump ACCEPT
-A input-internal-vlan-if --protocol tcp --match tcp --dport 443 --jump ACCEPT
-A input-internal-vlan-if --protocol tcp --match tcp --dport 647 --jump ACCEPT
# HTTP (parking portal)
-A input-internal-vlan-if --protocol tcp --match tcp --dport 5252 --jump ACCEPT
:input-internal-isol_vlan-if - [0:0]
# DNS
-A input-internal-isol_vlan-if --protocol tcp --match tcp --dport 53 --jump
ACCEPT
-A input-internal-isol_vlan-if --protocol udp --match udp --dport 53 --jump
ACCEPT
# DHCP
-A input-internal-isol_vlan-if --protocol udp --match udp --dport 67 --jump
ACCEPT
-A input-internal-isol_vlan-if --protocol tcp --match tcp --dport 67 --jump
ACCEPT
# HTTP (captive-portal)
-A input-internal-isol_vlan-if --protocol tcp --match tcp --dport 80 --jump
ACCEPT
-A input-internal-isol_vlan-if --protocol tcp --match tcp --dport 443 --jump
ACCEPT
-A input-internal-isol_vlan-if --protocol tcp --match tcp --dport 647 --jump
ACCEPT
# HTTP (parking portal)
-A input-internal-isol_vlan-if --protocol tcp --match tcp --dport 5252 --jump
ACCEPT
:input-internal-inline-if - [0:0]
# DNS
-A input-internal-inline-if --protocol tcp --match tcp --dport 53 --jump ACCEPT
-A input-internal-inline-if --protocol udp --match udp --dport 53 --jump ACCEPT
# HTTP (captive-portal)
# prevent registered users from reaching it
# TODO: Must work in dispatcher and Catalyst to redirect registered client out
of the portal
#-A input-internal-inline-if --protocol tcp --match tcp --dport 80 --match
mark --mark 0x1 --jump DROP
#-A input-internal-inline-if --protocol tcp --match tcp --dport 443 --match
mark --mark 0x1 --jump DROP
# allow everyone else behind inline interface (not registered, isolated, etc.)
-A input-internal-inline-if --protocol tcp --match tcp --dport 80 --jump ACCEPT
-A input-internal-inline-if --protocol tcp --match tcp --dport 443 --jump ACCEPT
-A input-internal-inline-if --protocol tcp --match tcp --dport 647 --jump ACCEPT
:input-highavailability-if - [0:0]
#SSH
-A input-highavailability-if --match state --state NEW --match tcp --protocol
tcp --dport 22 --jump ACCEPT
#Galera cluster
-A input-highavailability-if --protocol tcp --match tcp --dport 4444 --jump
ACCEPT
-A input-highavailability-if --protocol tcp --match tcp --dport 4567 --jump
ACCEPT
-A input-highavailability-if --protocol tcp --match tcp --dport 4568 --jump
ACCEPT
#PacketFence MariaDB Quorum server
-A input-highavailability-if --protocol tcp --match tcp --dport 7890 --jump
ACCEPT
-A input-highavailability-if --protocol tcp --match tcp --dport 7891 --jump
ACCEPT
# Corosync
-A input-highavailability-if --protocol udp --match udp --dport 5405 --jump
ACCEPT
-A input-highavailability-if --protocol udp --match udp --dport 5407 --jump
ACCEPT
#DRBD
-A input-highavailability-if --protocol tcp --match tcp --dport 7788 --jump
ACCEPT
# Heartbeat
-A input-highavailability-if --protocol udp --match udp --dport 694 --jump
ACCEPT
#PCS
-A input-highavailability-if --protocol tcp --match tcp --dport 2224 --jump
ACCEPT
-A input-highavailability-if --protocol tcp --match tcp --dport 3121 --jump
ACCEPT
-A input-highavailability-if --protocol tcp --match tcp --dport 21064 --jump
ACCEPT
### FORWARD ###
:FORWARD DROP [0:0]
:forward-internal-vlan-if - [0:0]
-A forward-internal-vlan-if -m set --match-set pfsession_passthrough dst,dst
--jump ACCEPT
-A forward-internal-vlan-if -m set --match-set pfsession_passthrough src,src
--jump ACCEPT
:forward-internal-isolvlan-if - [0:0]
-A forward-internal-isolvlan-if -m set --match-set pfsession_isol_passthrough
dst,dst --jump ACCEPT
-A forward-internal-isolvlan-if -m set --match-set pfsession_isol_passthrough
src,src --jump ACCEPT
:forward-internal-inline-if - [0:0]
:OUTPUT ACCEPT [0:0]
# These will redirect to the proper chains based on conf/pf.conf's configuration
-A INPUT --in-interface eth0 -d 224.0.0.0/8 -j ACCEPT
-A INPUT --in-interface eth0 -p vrrp -j ACCEPT
-A INPUT --in-interface eth0 --jump input-radius-if
-A INPUT --in-interface eth0 --jump input-management-if
COMMIT
*mangle
:PREROUTING ACCEPT [0:0]
:prerouting-int-inline-if - [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:postrouting-int-inline-if - [0:0]
# These will redirect to the proper chains based on conf/pf.conf's configuration
COMMIT
*nat
:PREROUTING ACCEPT [0:0]
:prerouting-int-inline-if - [0:0]
:postrouting-inline-routed - [0:0]
:postrouting-int-inline-if - [0:0]
:prerouting-int-vlan-if - [0:0]
-A PREROUTING -p tcp --dport 80 -m set --match-set parking src -j REDIRECT
--to-port 5252
-A PREROUTING -p tcp --dport 443 -m set --match-set parking src -j REDIRECT
--to-port 5252
:OUTPUT ACCEPT [0:0]
# These will redirect to the proper chains based on conf/pf.conf's configuration
:POSTROUTING ACCEPT [0:0]
#
# Chain to enable routing instead of NAT
#
#
# NAT out (PAT actually)
#
# If you want to do your own thing regarding NAT like for example:
# - allowing through instead of doing NAT (make sure you have the proper return
route)
# - traffic out on some interface other than management
# - overloading on multiple IP addresses
# Comment the next two lines and do it here on the POSTROUTING chain.
# Make sure to adjust the FORWARD rules also to allow traffic back-in.
#
# Routing for the hidden domain network
#
-A POSTROUTING -s 169.254.0.0/16 -o eth0 -j SNAT --to-source 10.1.8.220
COMMIT
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users