• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

nat on Linux

Hi !
I`m trying to use ipnatadm, in order to translate addresses on Linux. But when I type :
ipnatadm -O -i -S 192.168.0.57/32 -M 200.241.244.1/32

I receive the following error : setsockopt failed:protocol not available.

Do you know why it happens ?
Thanks !
0
ptenuta
Asked:
ptenuta
1 Solution
 
DebberCommented:
Download and install the ip-masquerading and ipchains modules, enable ip-forwarding and insert ipchains-rules into rc.firewall I'd recommend Robert Ziegler's site (and book "Linux Firewalls", New Riders) More info on: http://linux-firewall-tools.com/linux/ Succes!

0
 
aramoCommented:
1st excellent ref to linux-firewall-tools by Debber - thank you. It even includes cook-book scriptes if you need them.

IPCHAINS-Howto & IP-Masquerading covers the topic well - as setup depends on kernel I suggest you read the Howtos or post more info.

0
 
GnomusCommented:
check kernel for masquerading support
0
 
ptenutaAuthor Commented:
I´ve made it with ipchains . Thank you very much !
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now