カテゴリー: CentOS6

[fork_child] (0x0020): [RID#152134] pipe (to) failed [24][ファイルを開きすぎです]が出たときの対応

[fork_child] (0x0020): [RID#152134] pipe (to) failed [24][ファイルを開きすぎです]が出たときの対応

linux でkerberos 認証を行っているのだけれども sssd のログにこのようなエラーが出た場合の対処法。

コマンドで見るとこんな感じなので、拡張する。
# ulimit -n
1024

# vi /etc/security/limits.conf

上限は 65536
全ユーザを対象
ソフトリミット、ハードリミット共に同じ値
という事で、以下の設定を追記。

* soft nofile 65536
* hard nofile 65536
* soft nproc 65536
* hard nproc 65536

この場合に必要なのは
* soft nproc 65536
* hard nproc 65536

EdgeRouter X Ipsec

Ipsec site to site で最後まで苦労した。

CentOS6 の設定は

config setupconn %default
keyexchange=ikev1
ike=aes128-md5-modp2048!
esp=aes128-md5-modp2048!
compress=no

conn peer-79.23.254.12-tunnel-1
authby=secret
auto=start
closeaction=restart
dpdaction=restart
left=114.25.214.23
right=79.23.254.12
leftsubnet=172.20.0.0/16
rightsubnet=10.20.0.0/16
type=tunnel

conn peer-79.23.254.12-tunnel-2
authby=secret
auto=start
closeaction=restart
dpdaction=restart
left=114.25.214.23
right=79.23.254.12
leftsubnet=192.168.30.0/24
rightsubnet=10.10.0.0/16
type=tunnel

今回はmd5

Edgerouter は画面で設定

☆☆☆☆☆最後にするべきこと☆☆☆☆☆

管理画面の Wizard タブをクリック
TCP MSS clamping をクリック
Enable MSS clamping for TCP connections にチェック
Interface Types: All
MSS: 1314
Apply ボタンを押す

☆☆☆☆☆最後にするべきことおまけ☆☆☆☆☆
CentOS firewall の場合

iptables -A FORWARD -p tcp –tcp-flags SYN,RST SYN -j TCPMSS –clamp-mss-to-pmtu
or
iptables -A FORWARD -p tcp –tcp-flags SYN,RST SYN -j TCPMSS –clamp-mss-to-pmtu -o ipsec0

OpenLdapにLINUXユーザーアカウントを作ったけどその他の情報もLDAPに入れておきたかったので作ったSchema

/etc/openldap/schema フォルダーに ldapusers.schema を作成した。

attributetype ( 1.1.2.1.1.500.1
	NAME 'userName'
	DESC 'jp.compsys user name UTF8'
	EQUALITY caseIgnoreMatch
	SUBSTR caseIgnoreSubstringsMatch        <---- filter の部分文字列検索するためには必要か?!
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{200} )

attributetype ( 1.1.2.1.1.500.2
	NAME 'mailAddress'
	DESC 'jp.compsys email address'
	EQUALITY caseIgnoreIA5Match
	SUBSTR caseIgnoreSubstringsMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )

attributetype ( 1.1.2.1.1.500.3
	NAME 'mailAddressMobile'
	DESC 'jp.compsys mobile email address'
	EQUALITY caseIgnoreIA5Match
	SUBSTR caseIgnoreSubstringsMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )

objectclass ( 1.1.2.1.1.100.1
	NAME 'personalInfo'
	DESC 'jp.compsys personal information'
	SUP top AUXILIARY
	MAY	( userName $ mailAddress $ mailAddressMobile ) )

/etc/openldap/slapd.conf にldapusers.schema を追加する。修正したら slapd を再起動する。

include		/etc/openldap/schema/nis.schema
include		/etc/openldap/schema/openldap.schema
include		/etc/openldap/schema/ppolicy.schema
include		/etc/openldap/schema/collective.schema
include		/etc/openldap/schema/ldapusers.schema    <-----ここ

javaで使うときは

 // objectClass(必須)
 Attribute attrObjClass = new BasicAttribute("objectClass");
 attrObjClass.add(0, "top");
 attrObjClass.add(1, "account");
 attrObjClass.add(2, "posixAccount");
 attrObjClass.add(3, "personalInfo");
 attrs.put(attrObjClass);
全自動マージャン卓
10万円未満で買える
折りたたんで収納


会社に1台

AMAZON