zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

FTP over IPv6

September 4, 2010 by Igor Drobot Leave a Comment

The standard ftp command/client does not support IPv6 resolution.

A very powerful IPv6 ftp client alternative is lftp.

1
2
3
id@acer:~$ lftp ipv6.idrobot.net
lftp ipv6.idrobot.net:~> dir
-rw-r--r--   1 ftp      ftp             0 Aug 26 17:28 test.txt

id@acer:~$ lftp ipv6.idrobot.net lftp ipv6.idrobot.net:~> dir -rw-r--r-- 1 ftp ftp 0 Aug 26 17:28 test.txt

And of course Firefox does FTP over IPv6:
ftp://ipv6.idrobot.net OR ftp://[2a01:4f8:131:51e2::10]

Filed Under: FTP, IPv6, Linux, Networking Tagged With: FTP, ftp ipv6, Ipv6, lftp ipv6

Postfix with IPv6

September 3, 2010 by Igor Drobot Leave a Comment


In this how to I describe the basically configuration and administration of Postfix on Debian Lenny.
Current I’m using Postfix version 2.5.5
This tutorial should working with older and newer versions.

1
2
postconf -d | grep "mail_version =" | cut -d" " -f 3
2.5.5

postconf -d | grep "mail_version =" | cut -d" " -f 3 2.5.5

You can find the postfix main configuration file under “/etc/postfix”
Let see what wee need to configure a working Internet Mail-Server

1
postfix ~ # vim /etc/postfix/main.cf

postfix ~ # vim /etc/postfix/main.cf

My example configuration:

1
2
3
4
5
6
7
8
9
10
11
12
13
myhostname = ipv6.postfix.idrobot.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = ipv6.postfix.idrobot.net, localhost.localdomain, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
smtp_bind_address6 = 2a01:4f8:101:265::37
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
bounce_template_file = /etc/postfix/bounce.cf

myhostname = ipv6.postfix.idrobot.net alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = ipv6.postfix.idrobot.net, localhost.localdomain, localhost mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 smtp_bind_address6 = 2a01:4f8:101:265::37 mailbox_command = mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = all home_mailbox = Maildir/ bounce_template_file = /etc/postfix/bounce.cf

If you want to relay your mails to another mail-server you can use the relayhost option:
Edit main.cf, and add this line:

1
relayhost = ipv6.mx.idrobot.net

relayhost = ipv6.mx.idrobot.net

Some administration commands:
Show running config:

1
postconf -n

postconf -n

Show the default postfix config instead of running one:

1
postconf -d

postconf -d

Show message content:

1
postcat -q 7FB942082

postcat -q 7FB942082

Delete all mail in queue:

1
postsuper -d ALL

postsuper -d ALL

Schedule immediate delivery:

1
postqueue -i 7FB942082

postqueue -i 7FB942082

Flush the queue:

1
postqueue -f

postqueue -f

Filed Under: Debian, IPv6, Linux, Mailing, Networking Tagged With: Ipv6, MTA, Postfix, Postfix ipv6

Nokia N900 IPv6 Support

September 3, 2010 by Igor Drobot Leave a Comment

1. Launch the X-Terminal application
2. Type in the command: “sudo gainroot”
3. Type in “apt-get install kernel-power-flasher” to launch the request to install the IPv6-enabled kernel available at Extras-Testing repository
4. Accept ll confirmations
5. After finishing the download, the new kernel will be flashed automatically to your N900 device. Now turn of the device and then turn on the device to reboot.

Now you are able to use ipv6 module

To add very simple ipv6 address install “IPROUTE” to use “ip” command.

1
ip -6 a a 2001:470:1f0b:1514::100/64 dev wlan0

ip -6 a a 2001:470:1f0b:1514::100/64 dev wlan0

Filed Under: IPv6, Kernel, Linux, Mobile Tagged With: Ipv6, Nokia N900

OSI Reference Model

August 28, 2010 by Igor Drobot Leave a Comment

OSI is the Open System Interconnection reference model for communications. The OSI model is mainly used as a point of reference for discussing other protocol specifications such as TCP/IP and Net Ware.

The OSI reference model consists of seven layers that each defines a set of typical networking functions. The upper layers (application, presentation, and session; or Layers 7, 6, and 5) define functions focused on the application. The lower four layers (transport, network, data link, and physical; or Layers 4, 3, 2, and 1) define functions focused on end-to-end delivery of the data. Layer 2 is where switching is based, while Layer 3 is where routing is based.

Here are example protocols for eachlayer:

  • (7) Application – Telnet, HTTP, FTP, WWW browsers, NFS, SMTP gateways (Eudora, CC:mail, SNMP
  • (6) Presentation – JPEG, ASCII, EBCDIC, TIFF, GIF, PICT, encryption, MPEG, MIDI
  • (5) Session – RPC, SQL, NFS, NetBIOS , SSH, DECnet SCP
  • (4) Transport – TCP, UDP, SPX
  • (3) Network – IP, IPX, AppleTalk DDP
  • (2) Data Link – IEEE 802.3/802.2, HDLC, Frame Relay, PPP, FDDI, ATM, IEEE 802.5/802.2
  • (1) Physical – EIA/TIA-232, V.35, EIA/TIA-449, RJ-45, Ethernet, 802.3, 802.5, B8ZS

Filed Under: Linux

Python Comparison Operators

August 28, 2010 by Igor Drobot Leave a Comment

All following comparison operators have the standard mathematical interpretation and return a boolean value of True for true, False for false:

Comparison operations are supported by all objects!

This table summarizes the comparison operations:

Operation Meaning
< strictly less than
<= less than or equal
> strictly greater than
>= greater than or equal
== equal
!= not equal*
is object identity
is not negated object identity

* != can also be written <>, but this is an obsolete usage kept for backwards compatibility only. New code should always use !=.

Filed Under: Linux Tagged With: Programming, Python

  • « Previous Page
  • 1
  • …
  • 63
  • 64
  • 65
  • 66
  • 67
  • …
  • 74
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok