ether2any/tunnel/ircvpn/conf.py

66 lines
1.6 KiB
Python
Raw Normal View History

2011-10-30 01:22:45 +02:00
# ___________________________________________________
# | |
# | ircvpn - irc virtual public network configuration |
# |___________________________________________________|
import os
Conf = {
# ======== network settings ========
# ipsettings for the device
'devname': '',
'network':
{
'address': '10.10.10.74',
'netmask': '255.255.255.0',
#gateway: '',
'mtu': 1400,
},
# hubbed ("HUB")/switched("SWITCH") Network
# HUB: communicate only over broadcastchan
# SWITCH: use query for non broadcast packages
'mode': "HUB",
# ======== IRC settings ========
# irc-server to use
'ircserver': ('testine.someserver.de', 6667),
# broadcast domain (where to meet other clients)
'broadcastchan': '#broadcastchan',
# nick prefix (needs to be the same on all clients)
'nickPrefix': 'VPN',
# maximum msg len
'ircmsglen': 400,
# NOT IMPLEMENTED: reconnect on server disconnect
'ircReconnect': False,
'ircReconnectDelay': 3,
# ======== security settings ========
# accept packages if virtual mac != package mac
'acceptNonMatchingMac': True,
# ignore messages from non-mac user names
'ignoreNonMacUser': True,
# drop non broadcast packages from broadcast when
# in switched network mode
'strictSwichedNetwork': False,
# ======== extra tools settings ========
'voicebot':
{
'name': 'flowControl',
'voiceword': 'requesting network access',
},
# ======== misc settings ========
# executed after being connected to the server
2011-10-30 02:56:45 +01:00
# %s will be replaces with the device name
2011-10-30 01:22:45 +02:00
'postConnectCmd': '/sbin/dhclient -v %s',
}