please remind me - what is that portforwarding reset command?

8 replies
rockandroller
52 posts

I can't find it in a forum search, but it was very helpful a couple times before (SSH into edge server, and execute some one-liner to magically reset the port forwards...)

Had a hardware crash and strange reset of IP ( form 220 to 110) - changed all the IPS in my local DNS, and manually edited libvert file

right now I have edge web interface back up, can SSH into edge, and can surf web servers on three antlets again. But cannot SSH / SFTP into the antlets...

rockandroller
52 posts

it was actually something more like 'resetportforward..." I think its an Antsle-specific script . its referred to in some forum post here, I have used it a couple times the last couple years - forum search not turning it up tho

rockandroller
52 postsedited

ah.. I see it, it was "portmappings"!! :)

I just don't recall the whole command...  (still not showing up here,  i guess it was detailed in the old "edgeLinux" forum? )

rockandroller
52 posts

and ( ahah! ) found the answer in an old email from tech support:

If using the 22xxx port try running the 'portmappings' script from the edgeLinux command line.  This script will remove and recreate the 22xxx port mappings.

so its just 'run that script', don't need to pass it anything... trying this now...

▲ 2
rockandroller
52 posts

aaaaaaaaaaannnnnnnnddddddddddddddddd...  portmappings to the rescue!

I ran that command, and now I can once again SSH and SFTP in to each of the VMs.   :)

Still a mystery why the server IP changed from 220 to 110 after my RAM chip failure (new RAM chip installed today, back up to 24GB RAM)

Force Majeure,  I guess!

Next up (do I dare??) backing up the VMs and then upgrading the EDGE1 hypervisor from old gentoo to the new Centos ...

rockandroller
52 postsedited

OOPS!!! now on edgelinix 2 - but portmappings script FAILS:

root@myantsle:~ # portmappings
Bad argument `tcp'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `udp'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `tcp'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `udp'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `tcp'
[Repeat of errors above removed by moderator to shorten post]
root@myantsle:~ #

Former member

Hi,

Antsle dev here.

With edgeLinux 2, you now have a "Port Forwarding" page that lets you add these rules from antMan. Also, as of 3.1.0d, ssh (port 22) and rdp (3389) ports are forwarded using the same rules as portmappings when you create a new antlet.

Joe

Log in to reply. New here? It takes a minute.