sorah / xlat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xlat

Userland NAT64 implementation on Linux in Ruby.

Supported usage

  • Stateless NAT64 - RFC 7915
    • Maps 1 IPv6 Address : 1 IPv4 Address
    • Combine with kernel netfilter NAT66 masquerade to archieve stateful NAT64 NAPT functionality (multiple IPv6 address/port : 1 IPv4 Address)
    • IPv6(src=nat66outer, dst=pref64n+ipv4) -> IPv4(src=ipv4nat64outer, dst=ipv4)
    • IPv4(src=ipv4, dst=ipv4nat64outer) -> IPv6(src=pref64n+ipv4, dst=nat66outer)

Installation

# Gemfile
source 'https://rubygems.org'
gem 'xlat'

Usage

TODO: Write usage instructions here

Caveats

  • Packets with IPv6 extensions are silently discarded; Unsupported.
  • Expecting no difference in IPv4 and IPv6 MTU
  • Fragmented packets are silently discarded

Tips

Checksum Neutrality

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/xlat.

License

The gem is available as open source under the terms of the MIT License.

Credits

  • Copyright (c) 2024 Sorah Fukumori
  • Copyright (c) 2022 Kazuho Oku

About

License:MIT License


Languages

Language:Ruby 99.8%Language:Shell 0.2%