全文検索:
- Vyatta - IPSec Brige / L2TP(IPSec)+Nat @05_network:04_vyatta
- = インターフェース設定 ====== ===== vyatta-A ===== <code> # set interfaces ethernet eth0 address 10.10.10.246/24 # set interfaces ethernet eth1 address 192.168.10.246/24 # set system gateway-address '10.10.10.1' # set system host-name 'vyatta-A' </code> ===== vyatta-B ===== <c
- Vyatta Backup/Reestore @05_network:04_vyatta
- ンド形式で出力するツール /opt/vyatta/sbin/vyatta-config-gen-sets.pl 実行すると、下記のように出力されるので、\\ そのままコピペで実行すればリストアできる... e console> $ /opt/vyatta/sbin/vyatta-config-gen-sets.pl /config/backup.config set interfaces ethernet eth0 address '10.10.100.1/24' set interfaces ethernet eth0 duplex 'auto' set inte
- FreeBSD - vim @02_freebsd:99_その他
- ake install </code> ====== .vimrc ====== <code> set nobackup if v:lang =~ "^ko" set fileencodings=euc-kr set guifontset=-*-*-medium-r-normal--16-*-*-*-*-*-*-* elseif v:lang =~ "^ja_JP" set fileencodings=euc
- Vyatta Openvpn @05_network:04_vyatta
- === インターフェース設定 ====== ===== vyatta-A ===== <code> set system hostname router-A set interfaces ethernet eth0 address 10.10.10.246/24 set interfaces ethernet eth1 address 192.168.10.246/24 set service nat rule 10 outbound-interface eth0 set s
- 09 curl @11_php:03_function
- curl ====== <code php> $conn = curl_init(); curl_setopt($conn, CURLOPT_URL, $url); curl_setopt($conn, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($conn, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($conn, CURLOPT_RETURNTRANSFER, TRUE); curl_setop
- Vyatta Cluster @05_network:04_vyatta
- |Global|Local| |172.20.1.252|10.1.1.252| <code> set cluster dead-interval '20000' set cluster group cluster1 auto-failback 'false' set cluster group cluster1 primary 'vyatta.primary' set cluster group cluster1 secondary 'vyatta.secondary
- Vyatta OpenVPN Server/Client @05_network:04_vyatta
- ta.key </code> ===== コマンド ===== <code console> # set interfaces openvpn vtun0 encryption 'aes128' # set interfaces openvpn vtun0 mode 'server' # set interfaces openvpn vtun0 openvpn-option '--tls-auth /etc/openvpn/ta.key 0' # set interfaces openvpn vtun0 protocol 'udp' # set int
- 2023.12.14 React-adminとDjangoの連携 @50_dialy:2023:12
- let_s_encrypt_proxy]] でSSL化している想定で説明します。 ==== 1. settings.py 修正 ==== rest_frameworkを追加と 後のCORS (オリジン間... ce Sharing) の為、corsheadersを追加。 <code|testproject/settings.py> INSTALLED_APPS = [ ... ... .... | +----------------------------+ 11 rows in set (0.00 sec) mysql> desc testproject_product; +---... -----+-----+---------+----------------+ 3 rows in set (0.01 sec) </code> ==== 3. 管理画面での確認 ==== === 管
- Vyatta - L2TP(IPSec) @05_network:04_vyatta
- +----+-----+ ===== コマンド ===== <code> set vpn ipsec ipsec-interfaces interface eth0 set vpn ipsec nat-networks allowed-network [ネットワークセグメント] set vpn ipsec nat-traversal enable set vpn l2tp remote-access authentication local-users username [ユーザ名] p
- MySQLコマンド @02_freebsd:04_database:01_mysql
- -----+------------------+------------+ 12 rows in set (0.00 sec) </code> ==== 権限の確認 ==== <code conso... +-------------+-----------+-----------+ 4 rows in set (0.00 sec) </code> ==== ユーザ作成 ==== <code> CREAT... sole> mysql> create database 新データベース名 character set utf8; # mysqldump 旧データベース名 | mysql 新データベース名 ... -----+------+-----+---------+-------+ 31 rows in set (0.01 sec) </code> ==== カラムのデータ型を変更する ==== <co
- 2022.05.26 Kubernetes Podで名前解決できない @50_dialy:2022:05
- ndbox: rpc error: code = Unknown desc = failed to setup network for sandbox "5b729fceffd1ec702b1040dd85... " failed (add): failed to delegate add: failed to set bridge addr: "cni0" already has an IP address dif... ndbox: rpc error: code = Unknown desc = failed to setup network for sandbox "10304b386803230d68d2cf54df... " failed (add): failed to delegate add: failed to set bridge addr: "cni0" already has an IP address dif
- 02 pipのインストール @01_linux:12_ツール
- sy_installの準備 ===== easy_installが入ってない場合は、python-setuptoolsを入れてあげる [[https://pypi.python.org/pypi/setuptools#downloads|Python setuptools 3.3]] <code console> # wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python </
- 01 vim @01_linux:20_エディタ
- rcを置けばOK <code> $ cat ~/.vimrc ""#####表示設定##### ""set number "行番号を表示する set title "編集中のファイル名を表示 set showmatch "括弧入力時の対応する括弧を表示 syntax on "コードの色分け set tabstop=4 "インデントをスペース4つ分に設定 set nosmartindent "
- 55 corosync pacemaker @01_linux:01_net
- rce </code> === クラスタ作成 === <code> # pcs cluster setup --name pcs_cluster node01 node02 node03 </code>... 設定 ===== ==== フィルタの停止と、初期設定 ==== pcs property set stonith-enabled=false pcs property set no-quorum-policy=ignore pcs resource defaults resource-s... ocf:pacemaker:ping \ name=ping_set \ dampen=5s \ multi
- ipコマンド/IPエイリアス追加 @02_freebsd:80_unixコマンド
- th1.210 type vlan id 210 ==== UP ==== ip link set eth1.210 up ==== Down ==== ip link set eth1.210 down ==== 削除 ==== ip link del eth1.210 ===== ... route delete default ==== MTU変更 ==== ip link set eth0 mtu 9000 ===== VLANを付ける ===== eth0を使って、eth... = <code> # ip link add bond0 type bond # ip link set bond0 type bond miimon 100 mode 802.3ad # ip link